Share via


RpcMarshalableOptionalInterfaceAttribute(Int32, Type) Constructor

Definition

Initializes a new instance of the RpcMarshalableOptionalInterfaceAttribute class.

public RpcMarshalableOptionalInterfaceAttribute(int optionalInterfaceCode, Type optionalInterface);
new StreamJsonRpc.RpcMarshalableOptionalInterfaceAttribute : int * Type -> StreamJsonRpc.RpcMarshalableOptionalInterfaceAttribute
Public Sub New (optionalInterfaceCode As Integer, optionalInterface As Type)

Parameters

optionalInterfaceCode
Int32

The code to be serialized to specify that the marshaled object proxy should be generated implementing the optionalInterface interface. optionalInterfaceCode values must be unique across the different optional interfaces of the type this attribute is applied to. Because optionalInterfaceCode is serialized when transmitting a marshaled object, its value should never be reassigned to a different optional interface when updating RPC interfaces.

optionalInterface
Type

The Type of the known optional interface that the marshalable object may implement.

Applies to