다음을 통해 공유


CimSession.GetInstance Method (String, CimInstance)

 

Gets the specified instance from the server represented by the session.

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

Syntax

public CimInstance GetInstance(
    string namespaceName,
    CimInstance instanceId
)
public:
CimInstance^ GetInstance(
    String^ namespaceName,
    CimInstance^ instanceId
)
member GetInstance : 
        namespaceName:string *
        instanceId:CimInstance -> CimInstance
Public Function GetInstance (
    namespaceName As String,
    instanceId As CimInstance
) As CimInstance

Parameters

  • namespaceName
    Type: System.String

    A null-terminated string that contains the optional namespace name to carry out the operation. If none is specified, the server will pick a default. The namespace cannot include a computer name. It can only be in the form of a namespace name separated by a slash mark character (/). For example, the following would be a valid namespaceName value: root/cimv2.

Return Value

Type: Microsoft.Management.Infrastructure.CimInstance

The CimInstance object represented by the specified instanceId value.

See Also

GetInstance Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace

Return to top