PropertyCollection::GetProperty<TProperty> Method (Object^)
Gets the property associated with the specified key.
Assembly: Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)
Parameters
- key
-
Type:
System::Object^
The key.
Return Value
Type: TPropertyThe 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. |
Show: