Partager via


CimInstance.GetCimSessionInstanceId Method ()

 

Gets the InstanceId of the CIM session used to retrieve the current instance.

Namespace:   Microsoft.Management.Infrastructure
Assembly:  Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)

Syntax

public Guid GetCimSessionInstanceId()
public:
Guid GetCimSessionInstanceId()
member GetCimSessionInstanceId : unit -> Guid
Public Function GetCimSessionInstanceId As Guid

Return Value

Type: System.Guid

The InstanceId of the CIM session that was used to retrieve the current instance; returns Guid.Empty if the current instance is client-side only, or if the instance was retrieved from localhost.

See Also

CimInstance Class
Microsoft.Management.Infrastructure Namespace

Return to top