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
특성

설명

이 특성은 특정 인스턴스에서 애플리케이션에 초기화되지 않은 메모리를 표시할 수 있기 때문에 안전하지 않습니다(예: 초기화되지 않은 스택 할당 메모리에서 읽기). 메서드에 직접 적용되는 경우 특성은 해당 메서드와 람다 및 로컬 함수를 포함한 모든 중첩 함수에 적용됩니다. 형식 또는 모듈에 적용되는 경우 내부에 중첩된 모든 메서드에 적용됩니다. 이 특성은 어셈블리에서 의도적으로 허용되지 않습니다. 특성을 여러 형식 선언에 적용하려면 모듈 수준에서 대신 사용합니다.

생성자

Name Description
SkipLocalsInitAttribute()

SkipLocalsInitAttribute 클래스의 새 인스턴스를 초기화합니다.

속성

Name Description
TypeId

파생 클래스에서 구현되는 경우 이 Attribute대한 고유 식별자를 가져옵니다.

(다음에서 상속됨 Attribute)

메서드

Name Description
Equals(Object)

이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Attribute)
GetHashCode()

이 인스턴스의 해시 코드를 반환합니다.

(다음에서 상속됨 Attribute)
GetType()

현재 인스턴스의 Type 가져옵니다.

(다음에서 상속됨 Object)
IsDefaultAttribute()

파생 클래스에서 재정의되는 경우 이 인스턴스의 값이 파생 클래스의 기본값인지 여부를 나타냅니다.

(다음에서 상속됨 Attribute)
Match(Object)

파생 클래스에서 재정의되는 경우 이 인스턴스가 지정된 개체와 같은지 여부를 나타내는 값을 반환합니다.

(다음에서 상속됨 Attribute)
MemberwiseClone()

현재 Object단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상