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()

既定値を使用して DisableRuntimeMarshallingAttribute インスタンスを初期化します。

プロパティ

TypeId

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

(継承元 Attribute)

メソッド

Equals(Object)

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

(継承元 Attribute)
GetHashCode()

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

(継承元 Attribute)
GetType()

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

(継承元 Object)
IsDefaultAttribute()

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

(継承元 Attribute)
Match(Object)

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

(継承元 Attribute)
MemberwiseClone()

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

(継承元 Object)
ToString()

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

(継承元 Object)

適用対象