IVsTaskSchedulerService.CreateTaskCompletionSourceEx(UInt32, Object) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a task completion source instance with the specified options.
public:
Microsoft::VisualStudio::Shell::Interop::IVsTaskCompletionSource ^ CreateTaskCompletionSourceEx(System::UInt32 options, System::Object ^ AsyncState);
public:
Microsoft::VisualStudio::Shell::Interop::IVsTaskCompletionSource ^ CreateTaskCompletionSourceEx(unsigned int options, Platform::Object ^ AsyncState);
Microsoft::VisualStudio::Shell::Interop::IVsTaskCompletionSource CreateTaskCompletionSourceEx(unsigned int options, winrt::Windows::Foundation::IInspectable const & AsyncState);
C#
public Microsoft.VisualStudio.Shell.Interop.IVsTaskCompletionSource CreateTaskCompletionSourceEx(uint options, object AsyncState);
abstract member CreateTaskCompletionSourceEx : uint32 * obj -> Microsoft.VisualStudio.Shell.Interop.IVsTaskCompletionSource
Public Function CreateTaskCompletionSourceEx (options As UInteger, AsyncState As Object) As IVsTaskCompletionSource
- options
- UInt32
[in] Task creation options for the task controlled by the completion source.
- AsyncState
- Object
[in] Asynchronous state that will be stored by the task controlled by the completion source.
The task completion source instance.
This method is safe to access from any thread.
Product | Versions |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |