ServiceRpcDescriptor.RpcConnection.ConstructRpcClient Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
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.