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

適用対象