CimSession.Subscribe Method (String, String, String, CimOperationOptions, CimSubscriptionDeliveryOptions)

 

Subscribes to an indication on the server represented by the session.

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

Syntax

public IEnumerable<CimSubscriptionResult> Subscribe(
    string namespaceName,
    string queryDialect,
    string queryExpression,
    CimOperationOptions operationOptions,
    CimSubscriptionDeliveryOptions options
)

Parameters

  • namespaceName
    Type: System.String

    A string that contains the namespace name to carry out the operation.

  • queryDialect
    Type: System.String

    A string that contains the dialect of the query being passed.

  • queryExpression
    Type: System.String

    A string that contains the query expression to be carried out.

Return Value

Type: System.Collections.Generic.IEnumerable<CimSubscriptionResult>

Returns IEnumerable<T>.

See Also

Subscribe Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace

Return to top