Compartilhar via


CimSession.EnumerateReferencingInstances Method (String, CimInstance, String, String, CimOperationOptions)

 

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 IEnumerable<CimInstance> EnumerateReferencingInstances(
    string namespaceName,
    CimInstance sourceInstance,
    string associationClassName,
    string sourceRole,
    CimOperationOptions options
)
public:
IEnumerable<CimInstance^>^ EnumerateReferencingInstances(
    String^ namespaceName,
    CimInstance^ sourceInstance,
    String^ associationClassName,
    String^ sourceRole,
    CimOperationOptions^ options
)
member EnumerateReferencingInstances : 
        namespaceName:string *
        sourceInstance:CimInstance *
        associationClassName:string *
        sourceRole:string *
        options:CimOperationOptions -> IEnumerable<CimInstance>
Public Function EnumerateReferencingInstances (
    namespaceName As String,
    sourceInstance As CimInstance,
    associationClassName As String,
    sourceRole As String,
    options As CimOperationOptions
) As IEnumerable(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: System.Collections.Generic.IEnumerable<CimInstance>

An IEnumerable<T> interface that can be used to enumerate the instances.

See Also

EnumerateReferencingInstances Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace

Return to top