Partager via


CimSubscriptionDeliveryOptions.SetInterval Method (String, TimeSpan, UInt32)

 

Sets the value of a named interval option.

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

Syntax

public void SetInterval(
    string optionName,
    TimeSpan optionValue,
    uint flags
)
public:
void SetInterval(
    String^ optionName,
    TimeSpan optionValue,
    unsigned int flags
)
member SetInterval : 
        optionName:string *
        optionValue:TimeSpan *
        flags:uint32 -> unit
Public Sub SetInterval (
    optionName As String,
    optionValue As TimeSpan,
    flags As UInteger
)

Parameters

  • optionValue
    Type: System.TimeSpan

    The interval value for the option name.

Remarks

Use this method to set the following options.

  • __MI_SUBSCRIPTIONDELIVERYOPTIONS_SET_MAXIMUM_LATENCY
    The maximum amount of time, in milliseconds, that the server has to respond to the request. The interval is measured from the time the request is received by the server.

  • __MI_SUBSCRIPTIONDELIVERYOPTIONS_SET_HEARTBEAT_INTERVAL
    The interval, in milliseconds, after which the server will send a Heartbeat event if no real event is available. The client assumes that the subscription is no longer active if no heartbeats are received within the specified interval.

See Also

CimSubscriptionDeliveryOptions Class
Microsoft.Management.Infrastructure.Options Namespace

Return to top