PropertyCollection::GetProperty<TProperty> Method (Object^)

 

Gets the property associated with the specified key.

Namespace:   Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)

public:
generic<typename TProperty>
TProperty GetProperty(
	Object^ key
)

Parameters

key
Type: System::Object^

The key.

Return Value

Type: TProperty

The property value, or null if the property is not set.

Type Parameters

TProperty

The type of the property.

Exception Condition
ArgumentNullException

key is null.

KeyNotFoundException

key does not exist in the property collection.

Return to top
Show: