Share via


ServiceRpcDescriptor.WithServiceMoniker(ServiceMoniker) Method

Definition

Returns an instance of ServiceRpcDescriptor that resembles this one, but with the ServiceMoniker property set to the specified value.

public Microsoft.ServiceHub.Framework.ServiceRpcDescriptor WithServiceMoniker (Microsoft.ServiceHub.Framework.ServiceMoniker moniker);
member this.WithServiceMoniker : Microsoft.ServiceHub.Framework.ServiceMoniker -> Microsoft.ServiceHub.Framework.ServiceRpcDescriptor
Public Function WithServiceMoniker (moniker As ServiceMoniker) As ServiceRpcDescriptor

Parameters

moniker
ServiceMoniker

The moniker to be used in place of the original.

Returns

A clone of this instance, with the property changed. Or this same instance if the property already matches.

Applies to