Partilhar via


IAsyncServiceContainer.AddService Method

Definition

Overloads

AddService(Type, AsyncServiceCreatorCallback)

Adds a service.

AddService(Type, AsyncServiceCreatorWithProgressCallback)
AddService(Type, AsyncServiceCreatorCallback, Boolean)

Gets a service.

AddService(Type, AsyncServiceCreatorWithProgressCallback, Boolean)

AddService(Type, AsyncServiceCreatorCallback)

Adds a service.

public:
 void AddService(Type ^ serviceType, Microsoft::VisualStudio::Shell::AsyncServiceCreatorCallback ^ callback);
public void AddService (Type serviceType, Microsoft.VisualStudio.Shell.AsyncServiceCreatorCallback callback);
abstract member AddService : Type * Microsoft.VisualStudio.Shell.AsyncServiceCreatorCallback -> unit
Public Sub AddService (serviceType As Type, callback As AsyncServiceCreatorCallback)

Parameters

serviceType
Type

The type of the service to get.

callback
AsyncServiceCreatorCallback

The callback.

Applies to

AddService(Type, AsyncServiceCreatorWithProgressCallback)

public:
 void AddService(Type ^ serviceType, Microsoft::VisualStudio::Shell::AsyncServiceCreatorWithProgressCallback ^ callback);
public void AddService (Type serviceType, Microsoft.VisualStudio.Shell.AsyncServiceCreatorWithProgressCallback callback);
abstract member AddService : Type * Microsoft.VisualStudio.Shell.AsyncServiceCreatorWithProgressCallback -> unit
Public Sub AddService (serviceType As Type, callback As AsyncServiceCreatorWithProgressCallback)

Parameters

serviceType
Type

Applies to

AddService(Type, AsyncServiceCreatorCallback, Boolean)

Gets a service.

public:
 void AddService(Type ^ serviceType, Microsoft::VisualStudio::Shell::AsyncServiceCreatorCallback ^ callback, bool promote);
public void AddService (Type serviceType, Microsoft.VisualStudio.Shell.AsyncServiceCreatorCallback callback, bool promote);
abstract member AddService : Type * Microsoft.VisualStudio.Shell.AsyncServiceCreatorCallback * bool -> unit
Public Sub AddService (serviceType As Type, callback As AsyncServiceCreatorCallback, promote As Boolean)

Parameters

serviceType
Type

The type of the service to get.

callback
AsyncServiceCreatorCallback

The callback.

promote
Boolean

Applies to

AddService(Type, AsyncServiceCreatorWithProgressCallback, Boolean)

public:
 void AddService(Type ^ serviceType, Microsoft::VisualStudio::Shell::AsyncServiceCreatorWithProgressCallback ^ callback, bool promote);
public void AddService (Type serviceType, Microsoft.VisualStudio.Shell.AsyncServiceCreatorWithProgressCallback callback, bool promote);
abstract member AddService : Type * Microsoft.VisualStudio.Shell.AsyncServiceCreatorWithProgressCallback * bool -> unit
Public Sub AddService (serviceType As Type, callback As AsyncServiceCreatorWithProgressCallback, promote As Boolean)

Parameters

serviceType
Type
promote
Boolean

Applies to