AsyncPackage::AddService Method (Type^, AsyncServiceCreatorCallback^)
Visual Studio 2015
Adds an async service to this package. This service is no visible outside of this package.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: virtual void AddService( Type^ serviceType, AsyncServiceCreatorCallback^ callback ) sealed
Parameters
- serviceType
-
Type:
System::Type^
The service type to be used as the identifier used for retrieving this service.
- callback
-
Type:
Microsoft.VisualStudio.Shell::AsyncServiceCreatorCallback^
">The creation callback to be invoked when an instance of the service is needed. This is only invoked one time and the result is cached.
Show: