Condividi tramite


ServiceRpcDescriptor.RpcConnection.ConstructRpcClient Method

Definition

Overloads

ConstructRpcClient(Type)

Produces a proxy that provides a strongly-typed API for invoking methods offered by the remote party.

ConstructRpcClient<T>()

Produces a proxy that provides a strongly-typed API for invoking methods offered by the remote party.

ConstructRpcClient(Type)

Produces a proxy that provides a strongly-typed API for invoking methods offered by the remote party.

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

Parameters

interfaceType
Type

The interface that the returned proxy should implement.

Returns

The generated proxy.

Exceptions

May be thrown when StartListening() has already been called.

Remarks

This method may be called any number of times, but restrictions may apply after StartListening() is called, particularly when interfaceType includes events.

Applies to

ConstructRpcClient<T>()

Produces a proxy that provides a strongly-typed API for invoking methods offered by the remote party.

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

Type Parameters

T

The interface that the returned proxy should implement.

Returns

T

The generated proxy.

Exceptions

May be thrown when StartListening() has already been called.

Remarks

This method may be called any number of times, but restrictions may apply after StartListening() is called, particularly when T includes events.

Applies to