This documentation is archived and is not being maintained.
PropertyBag::TryGetProperty<T> Method
Visual Studio 2013
Attempts to get a property that has the specified name.
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.VisualStudio.TeamFoundation.Client (in Microsoft.VisualStudio.TeamFoundation.Client.dll)
public: generic<typename T> bool TryGetProperty( String^ key, [OutAttribute] T% value )
Type Parameters
- T
The type of the property.
Parameters
- key
- Type: System::String
The name of the property to get.
- value
- Type: T%
The value of the property.
Return Value
Type: System::BooleanTrue if the specified property is located in this collection; otherwise, false.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: