Click or drag to resize

PropertySystemGetPathPropertyT Method

Gets a typed property value for a given path.

Namespace:  ShellBoost.Core.WindowsPropertySystem
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static T GetPathProperty<T>(
	string path,
	PropertyKey property,
	T defaultValue
)

Parameters

path
Type: SystemString
The path.
property
Type: ShellBoost.Core.WindowsPropertySystemPropertyKey
The property to retrieve.
defaultValue
Type: T
The default value to use if the property is not found.

Type Parameters

T
The expected property value type.

Return Value

Type: T
The property typed value or the default value.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.
See Also