Autodesk Vault ProfessionalVault API

ShowDialog Method

Autodesk.DataManagement.Client.Framework.Forms.InterfacesIProgressView

Shows a modal progress view

Syntax

void ShowDialog(
   System.Threading.Tasks.Task task,
   System.Threading.CancellationTokenSource cancelToken
)
Sub ShowDialog( _
   ByVal task As System.Threading.Tasks.Task, _
   ByVal cancelToken As System.Threading.CancellationTokenSource _
) 

Parameters

NameDescription
taskAn optional task that is executing a background process. If specified, then the progress view will automatically close when the task finishes executing
cancelTokenA cancellation token whose Cancel method will be called if the user clicks the Cancel button on the Progress View

Remarks

If a task is specified, ShowDialog will not return until the task is completed (i.e. it is in one of the three final states: RanToCopmletion, Faulted or Canceled).

See Also