IJoinableTaskFactoryAwareHostObject.SetContext(JoinableTaskFactory) Method
Definition
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.
Set the joinable task factory that the host object should use for thread switching operations.
public:
void SetContext(Microsoft::VisualStudio::Threading::JoinableTaskFactory ^ factory);
public void SetContext (Microsoft.VisualStudio.Threading.JoinableTaskFactory factory);
abstract member SetContext : Microsoft.VisualStudio.Threading.JoinableTaskFactory -> unit
Public Sub SetContext (factory As JoinableTaskFactory)
Parameters
- factory
- JoinableTaskFactory
The joinable task factory to use.