Share via


ManagementPackOverride.ContextInstance Property

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets or sets the identifier for the instance of the monitoring class that is the context for the override. The context instance can be a monitoring object or a group. If this property is null, the context for the override is a class rather than a class instance, in which case the context can be found in the Context property.

Namespace: Microsoft.EnterpriseManagement.Configuration
Assembly: Microsoft.EnterpriseManagement.Core (in Microsoft.EnterpriseManagement.Core.dll)

Usage

'Usage
Dim instance As ManagementPackOverride
Dim value As Nullable(Of Guid)

value = instance.ContextInstance

instance.ContextInstance = value

Syntax

'Declaration
Public Property ContextInstance As Nullable(Of Guid)
public Nullable<Guid> ContextInstance { get; set; }
public:
property Nullable<Guid> ContextInstance {
    Nullable<Guid> get ();
    void set (Nullable<Guid> value);
}
/** @property */
public Nullable<Guid> get_ContextInstance ()

/** @property */
public void set_ContextInstance (Nullable<Guid> value)
public function get ContextInstance () : Nullable<Guid>

public function set ContextInstance (value : Nullable<Guid>)

Property Value

A null or GUID value.

The identifier for the instance of the monitoring class that is the context for the override.

Remarks

Pass the identifier returned from this property into the GetPartialMonitoringObject or GetMonitoringObject method to retrieve the context instance monitoring object.

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 Vista, Windows Server 2003, and

Target Platforms

Windows Server 2008,Windows Server 2003

See Also

Reference

ManagementPackOverride Class
ManagementPackOverride Members
Microsoft.EnterpriseManagement.Configuration Namespace