AsyncServiceProvider.CreateFromSetSite 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.
Overloads
CreateFromSetSite(IAsyncServiceProvider) |
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. |
CreateFromSetSite(IAsyncServiceProvider) |
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. |
CreateFromSetSite(IAsyncServiceProvider)
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.
public:
static Microsoft::VisualStudio::Shell::AsyncServiceProvider ^ CreateFromSetSite(Microsoft::VisualStudio::Shell::Interop::COMAsyncServiceProvider::IAsyncServiceProvider ^ asyncServiceProvider);
public static Microsoft.VisualStudio.Shell.AsyncServiceProvider CreateFromSetSite (Microsoft.VisualStudio.Shell.Interop.COMAsyncServiceProvider.IAsyncServiceProvider asyncServiceProvider);
static member CreateFromSetSite : Microsoft.VisualStudio.Shell.Interop.COMAsyncServiceProvider.IAsyncServiceProvider -> Microsoft.VisualStudio.Shell.AsyncServiceProvider
Public Shared Function CreateFromSetSite (asyncServiceProvider As IAsyncServiceProvider) As AsyncServiceProvider
Parameters
- asyncServiceProvider
- Microsoft.VisualStudio.Shell.Interop.COMAsyncServiceProvider.IAsyncServiceProvider
The global IAsyncServiceProvider service.
Returns
Applies to
CreateFromSetSite(IAsyncServiceProvider)
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.
public:
static Microsoft::VisualStudio::Shell::AsyncServiceProvider ^ CreateFromSetSite(Microsoft::VisualStudio::Shell::Interop::IAsyncServiceProvider ^ asyncServiceProvider);
public static Microsoft.VisualStudio.Shell.AsyncServiceProvider CreateFromSetSite (Microsoft.VisualStudio.Shell.Interop.IAsyncServiceProvider asyncServiceProvider);
static member CreateFromSetSite : Microsoft.VisualStudio.Shell.Interop.IAsyncServiceProvider -> Microsoft.VisualStudio.Shell.AsyncServiceProvider
Public Shared Function CreateFromSetSite (asyncServiceProvider As IAsyncServiceProvider) As AsyncServiceProvider
Parameters
- asyncServiceProvider
- IAsyncServiceProvider
The global IAsyncServiceProvider service.
Returns
Returns AsyncServiceProvider.