RequiresUnreferencedCodeAttribute 클래스

정의

지정된 메서드가 System.Reflection 등을 통해 정적으로 참조되지 않는 코드에 대한 동적 액세스를 요구함을 나타냅니다.

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

설명

이 특성을 사용하면 도구에서 애플리케이션에서 참조되지 않은 코드를 제거할 때 호출하기에 안전하지 않은 메서드를 이해할 수 있습니다. 자세한 내용은 경고 자르기 소개를 참조하세요.

생성자

RequiresUnreferencedCodeAttribute(String)

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

속성

Message

참조되지 않은 코드 사용에 대한 정보를 포함하는 메시지를 가져옵니다.

TypeId

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

(다음에서 상속됨 Attribute)
Url

참조되지 않은 코드가 필요한 이유, 소비자가 다뤄야 하는 옵션 등 메서드에 대한 추가 정보를 포함하는 선택적 URL을 가져오거나 설정합니다.

메서드

Equals(Object)

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

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

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

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

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

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

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

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

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

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

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

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

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

(다음에서 상속됨 Object)

적용 대상

추가 정보