RequiresUnreferencedCodeAttribute 클래스

정의

지정된 메서드가 System.Reflection통해 정적으로 참조되지 않는 코드에 동적 액세스가 필요했음을 나타냅니다.

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

설명

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

생성자

Name Description
RequiresUnreferencedCodeAttribute(String)

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

속성

Name Description
ExcludeStatics

주석이 정적 멤버에 적용되어야 하는지 여부를 나타내는 값을 가져오거나 설정합니다.

Message

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

TypeId

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

(다음에서 상속됨 Attribute)
Url

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

메서드

Name Description
Equals(Object)

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

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

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

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

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

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

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

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

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

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

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

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

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

(다음에서 상속됨 Object)

적용 대상

추가 정보