Partager via


PropertyBag.HasProperty Method

Checks whether this collection has a property that has the specified name.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.VisualStudio.TeamFoundation.Client (in Microsoft.VisualStudio.TeamFoundation.Client.dll)

Syntax

'Déclaration
Public Function HasProperty ( _
    key As String _
) As Boolean
public bool HasProperty(
    string key
)
public:
bool HasProperty(
    String^ key
)
member HasProperty : 
        key:string -> bool 
public function HasProperty(
    key : String
) : boolean

Parameters

Return Value

Type: System.Boolean
True if this collection has a property that has the specified name; otherwise, false.

.NET Framework Security

See Also

Reference

PropertyBag Class

Microsoft.TeamFoundation.Client Namespace