This documentation is archived and is not being maintained.

PropertyBag::TryGetProperty<T> Method

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::Boolean
True if the specified property is located in this collection; otherwise, false.

Show: