IAsyncServiceContainer.AddService Méthode

Définition

Surcharges

AddService(Type, AsyncServiceCreatorCallback)

Ajoute un service.

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

Obtient un service.

AddService(Type, AsyncServiceCreatorWithProgressCallback, Boolean)

AddService(Type, AsyncServiceCreatorCallback)

Ajoute un 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)

Paramètres

serviceType
Type

Type de service à obtenir.

callback
AsyncServiceCreatorCallback

Rappel.

S’applique à

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)

Paramètres

serviceType
Type

S’applique à

AddService(Type, AsyncServiceCreatorCallback, Boolean)

Obtient un 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)

Paramètres

serviceType
Type

Type de service à obtenir.

callback
AsyncServiceCreatorCallback

Rappel.

promote
Boolean

S’applique à

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)

Paramètres

serviceType
Type
promote
Boolean

S’applique à