IWebMatrixHost.CreateWaitDialog Method
Applies to v2.
Creates a wait dialog.
Namespace: Microsoft.WebMatrix.Extensibility
Assembly: Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)
Syntax
'Declaration
Function CreateWaitDialog ( _
title As String, _
message As String, _
dialogSize As DialogSize, _
delayShow As Nullable(Of TimeSpan), _
onCancel As Func _
) As IWaitDialog
'Usage
Dim instance As IWebMatrixHost
Dim title As String
Dim message As String
Dim dialogSize As DialogSize
Dim delayShow As Nullable(Of TimeSpan)
Dim onCancel As Func
Dim returnValue As IWaitDialog
returnValue = instance.CreateWaitDialog(title, _
message, dialogSize, delayShow, onCancel)
IWaitDialog CreateWaitDialog(
string title,
string message,
DialogSize dialogSize,
Nullable<TimeSpan> delayShow,
Func onCancel
)
IWaitDialog^ CreateWaitDialog(
String^ title,
String^ message,
DialogSize dialogSize,
Nullable<TimeSpan> delayShow,
Func^ onCancel
)
abstract CreateWaitDialog :
title:string *
message:string *
dialogSize:DialogSize *
delayShow:Nullable<TimeSpan> *
onCancel:Func -> IWaitDialog
function CreateWaitDialog(
title : String,
message : String,
dialogSize : DialogSize,
delayShow : Nullable<TimeSpan>,
onCancel : Func
) : IWaitDialog
Parameters
title
Type: System.StringThe title of the dialog box.
message
Type: System.StringThe message of the dialog.
dialogSize
Type: Microsoft.WebMatrix.Extensibility.DialogSizeThe size of the dialog.
delayShow
Type: System.Nullable<TimeSpan>The duration of the dialog to be displayed.
onCancel
Type: System.Func<TResult>The event when the dialog is closed on command.
Return Value
Type: Microsoft.WebMatrix.Extensibility.IWaitDialog
The created wait dialog.