RpcMarshalableOptionalInterfaceAttribute(Int32, Type) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.