Freigeben über


ManagementPackClassProperty.Key Property

Gets or sets a Boolean value that determines whether the property is a key class property. A class can have zero or more key properties defined.

Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

'Usage
Dim instance As ManagementPackClassProperty
Dim value As Boolean

value = instance.Key

instance.Key = value

Syntax

'Declaration
Public Property Key As Boolean
public bool Key { get; set; }
public:
property bool Key {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_Key ()

/** @property */
public void set_Key (boolean value)
public function get Key () : boolean

public function set Key (value : boolean)

Property Value

true if the property is a key class property; otherwise, false.

Remarks

Instances of the class are uniquely identified in Operations Manager using the key value. For a non-hosted class, all instances of the class must have a unique key combination. For hosted classes, all instances must have a unique key within the context of their hosting instance.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also

Reference

ManagementPackClassProperty Class
ManagementPackClassProperty Members
Microsoft.EnterpriseManagement.Configuration Namespace

Send comments about this topic to Microsoft.