IVsThreadedWaitDialog.GiveTimeSlice Method

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'宣言
Function GiveTimeSlice ( _
    bstrUpdatedWaitMessage As String, _
    bstrIfTruncateAppend As String, _
    fDisableCancel As Integer, _
    <OutAttribute> ByRef pfCancelled As Integer _
) As Integer
'使用
Dim instance As IVsThreadedWaitDialog
Dim bstrUpdatedWaitMessage As String
Dim bstrIfTruncateAppend As String
Dim fDisableCancel As Integer
Dim pfCancelled As Integer
Dim returnValue As Integer

returnValue = instance.GiveTimeSlice(bstrUpdatedWaitMessage, _
    bstrIfTruncateAppend, fDisableCancel, _
    pfCancelled)
int GiveTimeSlice(
    string bstrUpdatedWaitMessage,
    string bstrIfTruncateAppend,
    int fDisableCancel,
    out int pfCancelled
)
int GiveTimeSlice(
    [InAttribute] String^ bstrUpdatedWaitMessage, 
    [InAttribute] String^ bstrIfTruncateAppend, 
    [InAttribute] int fDisableCancel, 
    [OutAttribute] int% pfCancelled
)
function GiveTimeSlice(
    bstrUpdatedWaitMessage : String, 
    bstrIfTruncateAppend : String, 
    fDisableCancel : int, 
    pfCancelled : int
) : int

Parameters

  • bstrUpdatedWaitMessage
    Type: System.String

    [in] Can be a null reference (Nothing in Visual Basic)

  • bstrIfTruncateAppend
    Type: System.String

    [in] Can be a null reference (Nothing in Visual Basic), should be a short string e.g. L"..." or L"...\""

  • fDisableCancel
    Type: System.Int32

    [in] Disable the button if the operation can no longer be cancelled.

Return Value

Type: System.Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsThreadedWaitDialog::GiveTimeSlice(
   [in] BSTR bstrUpdatedWaitMessage, 
   [in] BSTR bstrIfTruncateAppend, 
   [in] BOOL fDisableCancel, 
   [out] BOOL *pfCancelled
);

Permissions

See Also

Reference

IVsThreadedWaitDialog Interface

IVsThreadedWaitDialog Members

Microsoft.VisualStudio.Shell.Interop Namespace