SkipLocalsInitAttribute クラス

定義

メタデータに出力するときに、入れ子になったメソッド ヘッダーに .locals init フラグを設定しないことをコンパイラに示します。

public ref class SkipLocalsInitAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Event | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Module | System.AttributeTargets.Property | System.AttributeTargets.Struct, Inherited=false)]
public sealed class SkipLocalsInitAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Event | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Module | System.AttributeTargets.Property | System.AttributeTargets.Struct, Inherited=false)>]
type SkipLocalsInitAttribute = class
    inherit Attribute
Public NotInheritable Class SkipLocalsInitAttribute
Inherits Attribute
継承
SkipLocalsInitAttribute
属性

注釈

この属性は安全ではありません。これは、初期化されていないメモリが特定のインスタンスでアプリケーションに表示される可能性があるためです (たとえば、初期化されていないスタック割り当てメモリからの読み取り)。 メソッドに直接適用された場合、属性はそのメソッドとそのすべての入れ子になった関数 (ラムダやローカル関数を含む) に適用されます。 型またはモジュールに適用される場合は、内部に入れ子になったすべてのメソッドに適用されます。 この属性は、アセンブリでは意図的に許可されません。 属性を複数の型宣言に適用するには、代わりにモジュール レベルで属性を使用します。

コンストラクター

名前 説明
SkipLocalsInitAttribute()

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

プロパティ

名前 説明
TypeId

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

(継承元 Attribute)

メソッド

名前 説明
Equals(Object)

このインスタンスが指定したオブジェクトと等しいかどうかを示す値を返します。

(継承元 Attribute)
GetHashCode()

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

(継承元 Attribute)
GetType()

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

(継承元 Object)
IsDefaultAttribute()

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

(継承元 Attribute)
Match(Object)

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

(継承元 Attribute)
MemberwiseClone()

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

(継承元 Object)
ToString()

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

(継承元 Object)

適用対象