PropertyBag.GetProperty<T> Method (String)
Gets the property in this collection that has the specified name.
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.VisualStudio.TeamFoundation.Client (in Microsoft.VisualStudio.TeamFoundation.Client.dll)
Syntax
声明
Public Function GetProperty(Of T) ( _
key As String _
) As T
public T GetProperty<T>(
string key
)
public:
generic<typename T>
T GetProperty(
String^ key
)
member GetProperty :
key:string -> 'T
JScript does not support generic types or methods.
Type Parameters
- T
The type of the property.
Parameters
- key
Type: System.String
The name of the property to get.
Return Value
Type: T
The property in this collection that has the specified name.
.NET Framework Security
- 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.