ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
PropertyBag Class
PropertyBag Methods
Add Method
ClearNoCheck Method
ContainsKey Method
Remove Method
RemovePropertyNoCheck Method
SetPropertyNoCheck Method
TryGetValue Method

# PropertyBagContainsKey Method

Determines whether the PropertyBag contains a property with the specified name.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public bool ContainsKey(
    	string key
    )

    Public Function ContainsKey (
    	key As String
    ) As Boolean

    public:
    virtual bool ContainsKey(
    	String^ key
    ) sealed

    abstract ContainsKey :
            key : string -> bool
    override ContainsKey :
            key : string -> bool

#### Parameters

key String
  The name of the property to locate.

#### Return Value

Boolean
True if the PropertyBag contains a property with the specified name, false otherwise.

#### Implements

IDictionaryTKey, TValue ContainsKey(TKey)
See Also

#### Reference

PropertyBag Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft