共用方式為


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
)
public:
IEnumerable<CimSubscriptionResult^>^ Subscribe(
    String^ namespaceName,
    String^ queryDialect,
    String^ queryExpression,
    CimOperationOptions^ operationOptions,
    CimSubscriptionDeliveryOptions^ options
)
member Subscribe : 
        namespaceName:string *
        queryDialect:string *
        queryExpression:string *
        operationOptions:CimOperationOptions *
        options:CimSubscriptionDeliveryOptions -> IEnumerable<CimSubscriptionResult>
Public Function Subscribe (
    namespaceName As String,
    queryDialect As String,
    queryExpression As String,
    operationOptions As CimOperationOptions,
    options As CimSubscriptionDeliveryOptions
) As IEnumerable(Of CimSubscriptionResult)

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