ExternalDataExchangeService.AddService(Object) Méthode

Définition

Ajoute le service spécifié à la ExternalDataExchangeService.

public:
 void AddService(System::Object ^ service);
public:
 virtual void AddService(System::Object ^ service);
public void AddService (object service);
public virtual void AddService (object service);
member this.AddService : obj -> unit
abstract member AddService : obj -> unit
override this.AddService : obj -> unit
Public Sub AddService (service As Object)
Public Overridable Sub AddService (service As Object)

Paramètres

service
Object

Objet représentant l'instance de service à ajouter.

Exceptions

service est une référence Null (Nothing en Visual Basic).

Le conteneur d'exécution externe est introuvable.

Exemples

L'exemple suivant montre comment ajouter un service à l'objet ExternalDataExchangeService. Cet exemple provient de l'exemple du Kit de développement logiciel Ordering State Machine (SDK). Pour plus d’informations, consultez Ordering State Machine Sample.

string IWorkflowCompilerOptionsService.RootNamespace
{
    get
    {
        return string.Empty;
    }
}
Public ReadOnly Property RootNamespace() As String Implements IWorkflowCompilerOptionsService.RootNamespace
    Get
        Return String.Empty
    End Get
End Property

S’applique à