IShellPropertyExtensionsGetValueAsT Method
Gets the value of the specified IShellProperty as a normalized String
and then convert that string to the specified type.
Namespace: DevCase.ThirdParty.WindowsApiCodePack.Extensions.IShellPropertyExtensionsAssembly: DevCase.net48.ThirdParty.WindowsApiCodePack (in DevCase.net48.ThirdParty.WindowsApiCodePack.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static T GetValueAs<T>(
this IShellProperty sender
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function GetValueAs(Of T) (
sender As IShellProperty
) As T
Dim sender As IShellProperty
Dim returnValue As T
returnValue = sender.GetValueAs()
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
generic<typename T>
static T GetValueAs(
IShellProperty^ sender
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member GetValueAs :
sender : IShellProperty -> 'T
No code example is currently available or this language may not be supported.
- sender IShellProperty
-
The source IShellProperty.
- T
T
The resulting value.
In Visual Basic and C#, you can call this method as an instance method on any object of type
IShellProperty. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is a code example.
No code example is currently available or this language may not be supported.
Dim img As ShellObject = ShellObject.FromParsingName("C:\Image.jpg")
Dim prop As IShellProperty = img.Properties.GetProperty(SystemProperties.System.Image.VerticalSize)
Dim propValue As String = GetValueAs(Of Integer)(prop)
Console.WriteLine(propValue)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.