语言

RpcMarshalableOptionalInterfaceAttribute(Int32, Type) 构造函数

定义

初始化 RpcMarshalableOptionalInterfaceAttribute 类的新实例。

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

参数

optionalInterfaceCode
Int32

要序列化的代码,以指定应生成封送对象代理来实现 optionalInterface 接口。 optionalInterfaceCode 在应用此属性的类型的不同可选接口中,值必须是唯一的。 由于 optionalInterfaceCode 在传输封送对象时序列化,因此在更新 RPC 接口时,不应将其值重新分配给其他可选接口。

optionalInterface
Type

Type可封送对象的已知可选接口。

适用于