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)
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)
namespaceName
Type: System.StringA string that contains the namespace name to carry out the operation.
queryDialect
Type: System.StringA string that contains the dialect of the query being passed.
queryExpression
Type: System.StringA string that contains the query expression to be carried out.
operationOptions
Type: Microsoft.Management.Infrastructure.Options.CimOperationOptionsA CimOperationOptions object that specifies options, such as timeouts, and how to control the CIM semantics.
options
Type: Microsoft.Management.Infrastructure.Options.CimSubscriptionDeliveryOptionsA CimSubscriptionDeliveryOptions object that defines the subscription delivery options.
Type: System.Collections.Generic.IEnumerable<CimSubscriptionResult>
Returns IEnumerable<T>.
Subscribe Overload
CimSession Class
Microsoft.Management.Infrastructure Namespace
Return to top