Click or drag to resize

ExtensionsGetValueT Method (IDictionaryPropertyKey, Object, PropertyKey, T)

Gets a value from a PropertyKey dictionary.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static T GetValue<T>(
	this IDictionary<PropertyKey, Object> dictionary,
	PropertyKey key,
	T defaultValue = null
)

Parameters

dictionary
Type: System.Collections.GenericIDictionaryPropertyKey, Object
The dictionary.
key
Type: callback.ShellBoost.Core.WindowsPropertySystemPropertyKey
The PropertyKey.
defaultValue (Optional)
Type: T
The default value.

Type Parameters

T
The expected return type.

Return Value

Type: T
The result value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDictionaryPropertyKey, Object. 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).
See Also