DisableRuntimeMarshallingAttribute クラス

定義

P/Invokes、デリゲート型、およびアンマネージ関数ポインター呼び出しの組み込みランタイム マネージド/アンマネージド マーシャリング サブシステムを無効にします。

public ref class DisableRuntimeMarshallingAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)]
public sealed class DisableRuntimeMarshallingAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false, Inherited=false)>]
type DisableRuntimeMarshallingAttribute = class
    inherit Attribute
Public NotInheritable Class DisableRuntimeMarshallingAttribute
Inherits Attribute
継承
DisableRuntimeMarshallingAttribute
属性

注釈

組み込みのマーシャリング サブシステムには、下位互換性要件のために変更できないいくつかの動作があります。 この属性を使用すると、組み込みサブシステムを無効にすることができます。代わりに、P/Invokes、Delegates、およびアンマネージ関数ポインター呼び出しに対して次の規則を使用します。

  • 参照型フィールドを再帰的に含まないすべての値型 (unmanaged C# では) は blittable です。
  • 相互運用が許可されていないフィールドを再帰的に持つ [StructLayout(LayoutKind.Auto)] 値型。
  • 相互運用シナリオでは、すべての参照型が使用できなくなります。
  • P/Invokes での SetLastError のサポートが無効になっています。
  • varargs のサポートは無効です。
  • LCIDConversionAttribute のサポートが無効になっています。

コンストラクター

DisableRuntimeMarshallingAttribute()

プロパティ

TypeId

派生クラスで実装されると、この Attribute の一意の識別子を取得します。

(継承元 Attribute)

メソッド

Equals(Object)

このインスタンスが、指定されたオブジェクトと等価であるかどうかを示す値を返します。

(継承元 Attribute)
GetHashCode()

このインスタンスのハッシュ コードを返します。

(継承元 Attribute)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
IsDefaultAttribute()

派生クラスでオーバーライドされるとき、このインスタンスの値が派生クラスの既定値であるかどうかを示します。

(継承元 Attribute)
Match(Object)

派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。

(継承元 Attribute)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象