RequiresDynamicCodeAttribute 클래스

정의

지정된 메서드에 런타임 시(예: 를 통해 System.Reflection) 새 코드를 생성하는 기능이 필요했음을 나타냅니다.

public ref class RequiresDynamicCodeAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method, Inherited=false)]
public sealed class RequiresDynamicCodeAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Method, Inherited=false)>]
type RequiresDynamicCodeAttribute = class
    inherit Attribute
Public NotInheritable Class RequiresDynamicCodeAttribute
Inherits Attribute
상속
RequiresDynamicCodeAttribute
특성

설명

이 특성을 사용하면 도구에서 미리 컴파일할 때 호출하기에 안전하지 않은 메서드를 이해할 수 있습니다. 자세한 내용은 AOT 경고 소개를 참조하세요.

생성자

RequiresDynamicCodeAttribute(String)

지정된 메시지를 사용하여 RequiresDynamicCodeAttribute 클래스의 새 인스턴스를 초기화합니다.

속성

Message

동적 코드 사용에 대한 정보가 포함된 메시지를 가져옵니다.

TypeId

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

(다음에서 상속됨 Attribute)
Url

메서드에 대한 자세한 정보, 동적 코드가 필요한 이유 및 소비자가 처리해야 하는 옵션을 포함하는 선택적 URL을 가져오거나 설정합니다.

메서드

Equals(Object)

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

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

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

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

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

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

파생 클래스에서 재정의된 경우 이 인스턴스 값이 파생 클래스에 대한 기본값인지 여부를 표시합니다.

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

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

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

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

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

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

(다음에서 상속됨 Object)

적용 대상

추가 정보