Share via


RegisterWmiEventCommand.Timeout Property

Gets and sets the value of the Timeout parameter of the Register-WmiEvent cmdlet. This property is introduced in Windows PowerShell 2.0.

Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Management (in Microsoft.PowerShell.Commands.Management.dll)

Usage

'Usage
Dim instance As RegisterWmiEventCommand
Dim value As Long

value = instance.Timeout

instance.Timeout = value

Syntax

'Declaration
<ParameterAttribute> _
<AliasAttribute(System.String[])> _
Public Property Timeout As Long
[ParameterAttribute] 
[AliasAttribute(System.String[])] 
public long Timeout { get; set; }
[ParameterAttribute] 
[AliasAttribute(System.String[])] 
public:
property long long Timeout {
    long long get ();
    void set (long long value);
}
/** @property */
public long get_Timeout ()

/** @property */
public void set_Timeout (long value)
public function get Timeout () : long

public function set Timeout (value : long)

Property Value

An Int64 value specifies how long Windows PowerShell waits for this command to complete.

Remarks

This topic is included in this SDK for completeness only. For more information about this cmdlet, see Register-WmiEvent in the Microsoft TechNet library.

For Help at the command line, type:

get-help register-wmievent

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

RegisterWmiEventCommand Class
RegisterWmiEventCommand Members
Microsoft.PowerShell.Commands Namespace

Other Resources

Windows PowerShell SDK