Compartir a través de


CimSession.EnumerateReferencingInstancesAsync Method (String, CimInstance, String, String)

 

Asynchronous method that finds the association object that references the specified key instance.

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

Syntax

public CimAsyncMultipleResults<CimInstance> EnumerateReferencingInstancesAsync(
    string namespaceName,
    CimInstance sourceInstance,
    string associationClassName,
    string sourceRole
)
public:
CimAsyncMultipleResults<CimInstance^>^ EnumerateReferencingInstancesAsync(
    String^ namespaceName,
    CimInstance^ sourceInstance,
    String^ associationClassName,
    String^ sourceRole
)
member EnumerateReferencingInstancesAsync : 
        namespaceName:string *
        sourceInstance:CimInstance *
        associationClassName:string *
        sourceRole:string -> CimAsyncMultipleResults<CimInstance>
Public Function EnumerateReferencingInstancesAsync (
    namespaceName As String,
    sourceInstance As CimInstance,
    associationClassName As String,
    sourceRole As String
) As CimAsyncMultipleResults(Of 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.

  • associationClassName
    Type: System.String

    A null-terminated string that contains the optional value that specifies to map the association by using only this association class. If this value is NULL, then any association class will be used.

  • sourceRole
    Type: System.String

    A null-terminated string that contains the property name in the association object that points to the key object.

Return Value

Type: Microsoft.Management.Infrastructure.Generic.CimAsyncMultipleResults<CimInstance>

A CimAsyncMultipleResults<T> object that represents an asynchronous operation that returns multiple results.

See Also

EnumerateReferencingInstancesAsync Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace

Return to top