Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function GiveTimeSlice ( _
bstrUpdatedWaitMessage As String, _
bstrIfTruncateAppend As String, _
fDisableCancel As Integer, _
<OutAttribute> ByRef pfCancelled As Integer _
) As Integer
'Usage
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
)
abstract GiveTimeSlice :
bstrUpdatedWaitMessage:string *
bstrIfTruncateAppend:string *
fDisableCancel:int *
pfCancelled:int byref -> int
function GiveTimeSlice(
bstrUpdatedWaitMessage : String,
bstrIfTruncateAppend : String,
fDisableCancel : int,
pfCancelled : int
) : int
Parameters
- bstrUpdatedWaitMessage
Type: System.String
[in] Can be nulla null reference (Nothing in Visual Basic)
- bstrIfTruncateAppend
Type: System.String
[in] Can be nulla 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.
- pfCancelled
Type: System.Int32%
[out]
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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.