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)

Syntax

声明
Public Function TryGetProperty(Of T) ( _
    key As String, _
    <OutAttribute> ByRef value As T _
) As Boolean
public bool TryGetProperty<T>(
    string key,
    out T value
)
public:
generic<typename T>
bool TryGetProperty(
    String^ key, 
    [OutAttribute] T% value
)
member TryGetProperty : 
        key:string * 
        value:'T byref -> bool 
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of the property.

Parameters

  • 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.

.NET Framework Security

See Also

Reference

PropertyBag Class

Microsoft.TeamFoundation.Client Namespace