RpcMarshalableOptionalInterfaceAttribute クラス

定義

マーシャリング可能なオブジェクトがインターフェイス OptionalInterfaceを実装する可能性があることを示すために、RpcMarshalableAttributeでマークされたインターフェイスで使用される属性。

[System.AttributeUsage(System.AttributeTargets.Interface, AllowMultiple=true, Inherited=false)]
public class RpcMarshalableOptionalInterfaceAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Interface, AllowMultiple=true, Inherited=false)>]
type RpcMarshalableOptionalInterfaceAttribute = class
    inherit Attribute
Public Class RpcMarshalableOptionalInterfaceAttribute
Inherits Attribute
継承
RpcMarshalableOptionalInterfaceAttribute
属性

注釈

OptionalInterfaceを実装するオブジェクトが、RpcMarshalableOptionalInterfaceAttributeでマークされた基本インターフェイスとしてマーシャリングされると、OptionalInterfaceCodeが StreamJsonRpc メッセージに含まれ、OptionalInterfaceも実装するプロキシの作成が可能になります。

OptionalInterfaceCode値を含まないメッセージを受信した場合、既知の省略可能なインターフェイスを持つマーシャリング可能なインターフェイスの場合は、基本インターフェイスを使用してプロキシが作成されます。 プロキシの作成時に不明な OptionalInterfaceCode 値は無視されます。

RpcMarshalableOptionalInterfaceAttribute は、属性が割り当てられているインターフェイスを正確に使用する RPC メソッドを介してオブジェクトがマーシャリングされる場合にのみ適用されます。 RpcMarshalableOptionalInterfaceAttribute 属性が割り当てられているインターフェイスから拡張または拡張されるインターフェイスに適用される属性は無視されます。

コンストラクター

名前 説明
RpcMarshalableOptionalInterfaceAttribute(Int32, Type)

RpcMarshalableOptionalInterfaceAttribute クラスの新しいインスタンスを初期化します。

プロパティ

名前 説明
OptionalInterface

マーシャリング可能なオブジェクトが実装できる既知の省略可能なインターフェイスの Type を取得します。

OptionalInterfaceCode

OptionalInterface インターフェイスを実装するマーシャリングされたオブジェクト プロキシを生成する必要があることを指定するためにシリアル化するコードを取得します。

適用対象