IVsThreadPool.ScheduleTask Method
Schedules a task to run.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'宣言
Function ScheduleTask ( _
pTaskProc As UInteger, _
pvParam As UInteger, _
priority As UInteger _
) As Integer
'使用
Dim instance As IVsThreadPool
Dim pTaskProc As UInteger
Dim pvParam As UInteger
Dim priority As UInteger
Dim returnValue As Integer
returnValue = instance.ScheduleTask(pTaskProc, _
pvParam, priority)
int ScheduleTask(
uint pTaskProc,
uint pvParam,
uint priority
)
int ScheduleTask(
[InAttribute] unsigned int pTaskProc,
[InAttribute] unsigned int pvParam,
[InAttribute] unsigned int priority
)
function ScheduleTask(
pTaskProc : uint,
pvParam : uint,
priority : uint
) : int
Parameters
pTaskProc
Type: System.UInt32[in] The environment explicitly casts this pointer to a PVsBackgroundTask_Function_Pointer prior to being called
pvParam
Type: System.UInt32[in]
priority
Type: System.UInt32
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 vsshell.idl:
HRESULT IVsThreadPool::ScheduleTask(
[in] DWORD_PTR pTaskProc,
[in] DWORD_PTR pvParam
);
Permissions
- 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.