ServiceRpcDescriptor.RpcConnection.ConstructRpcClient Méthode

Définition

Surcharges

ConstructRpcClient(Type)

Produit un proxy qui fournit une API fortement typée pour appeler les méthodes offertes par le tiers distant.

ConstructRpcClient<T>()

Produit un proxy qui fournit une API fortement typée pour appeler les méthodes offertes par le tiers distant.

ConstructRpcClient(Type)

Produit un proxy qui fournit une API fortement typée pour appeler les méthodes offertes par le tiers distant.

public:
 virtual System::Object ^ ConstructRpcClient(Type ^ interfaceType);
public virtual object ConstructRpcClient (Type interfaceType);
abstract member ConstructRpcClient : Type -> obj
override this.ConstructRpcClient : Type -> obj
Public Overridable Function ConstructRpcClient (interfaceType As Type) As Object

Paramètres

interfaceType
Type

Interface que le proxy retourné doit implémenter.

Retours

Object

Proxy généré.

Exceptions

Peut être levée lorsque StartListening() a déjà été appelé.

Remarques

Cette méthode peut être appelée plusieurs fois, mais des restrictions peuvent s’appliquer après l' StartListening() appel de, en particulier lorsque interfaceType comprend des événements.

S’applique à

ConstructRpcClient<T>()

Produit un proxy qui fournit une API fortement typée pour appeler les méthodes offertes par le tiers distant.

public:
generic <typename T>
 where T : class abstract T ConstructRpcClient();
public abstract T ConstructRpcClient<T> () where T : class;
abstract member ConstructRpcClient : unit -> 'T (requires 'T : null)
Public MustOverride Function ConstructRpcClient(Of T As Class) () As T

Paramètres de type

T

Interface que le proxy retourné doit implémenter.

Retours

T

Proxy généré.

Exceptions

Peut être levée lorsque StartListening() a déjà été appelé.

Remarques

Cette méthode peut être appelée plusieurs fois, mais des restrictions peuvent s’appliquer après l' StartListening() appel de, en particulier lorsque T comprend des événements.

S’applique à