AsyncServiceProvider::CreateFromSetSite Method (IAsyncServiceProvider^)
Visual Studio 2015
Create a new AsyncServiceProvider for the given site. Should be called from an object that implements SetSite (IObjectWithSite or IVsPackage). Automatically sets the global async service provider if it hasn't already been set. This method is typically called from the SetSite method of a Visual Studio package.
Note: By calling this method, the caller declares that it knows the global async service provider and that the AsyncServiceProvider instance returned may be used by other, unrelated components, accessed via the AsyncServiceProvider.GlobalProvider static property.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: static AsyncServiceProvider^ CreateFromSetSite( IAsyncServiceProvider^ asyncServiceProvider )
Parameters
- asyncServiceProvider
-
Type:
Microsoft.VisualStudio.Shell.Interop::IAsyncServiceProvider^
The global IAsyncServiceProvider service.
Show: