InvokeMethodOptions Constructor (ManagementNamedValueCollection, TimeSpan)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the InvokeMethodOptions class for an invoke operation using the specified values.

Namespace:   System.Management
Assembly:  System.Management (in System.Management.dll)

new : 
        context:ManagementNamedValueCollection *
        timeout:TimeSpan -> InvokeMethodOptions


Type: System.Management.ManagementNamedValueCollection

A provider-specific, named-value pairs object to be passed through to the provider.

Type: System.TimeSpan

The length of time to let the operation perform before it times out. The default value is MaxValue. Setting this parameter will invoke the operation semisynchronously.

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

The following example invokes the Win32_Process::Create method to start a new process of Calc.exe. The InvokeMethodOptions class is used to invoke the method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top