共用方式為


CommonMessagePump.Timeout Property

Gets or sets the timeout value for the modal wait.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public Property Timeout As TimeSpan
public TimeSpan Timeout { get; set; }

Property Value

Type: System.TimeSpan
The timeout value for the modal wait.

Remarks

Use TimeSpan.MaxValue for an infinite wait.

This value may be set before calling ModalWaitForHandles or during one of the callbacks in ModalWaitForHandlesWithClient.

.NET Framework Security

See Also

Reference

CommonMessagePump Class

Microsoft.VisualStudio.Shell Namespace