다음을 통해 공유


DeprecatedAttribute 클래스

정의

형식 또는 멤버가 메타데이터에서 사용되지 않는 것으로 표시되어야 했음을 나타냅니다. 컴파일러 및 기타 개발자 도구는 이 특성을 읽고 사용 중단 유형 및 가능한 대체 항목에 대한 정보를 사용자에게 제공할 수 있습니다.

public ref class DeprecatedAttribute sealed : Attribute
/// [Windows.Foundation.Metadata.AllowMultiple]
/// [Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.RuntimeClass | System.AttributeTargets.Struct)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
class DeprecatedAttribute final : Attribute
[Windows.Foundation.Metadata.AllowMultiple]
[Windows.Foundation.Metadata.AttributeUsage(System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.RuntimeClass | System.AttributeTargets.Struct)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
public sealed class DeprecatedAttribute : Attribute
Public NotInheritable Class DeprecatedAttribute
Inherits Attribute
상속
DeprecatedAttribute
특성

Windows 요구 사항

요구 사항 Description
디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.FoundationContract (v1.0에서 도입되었습니다.)

생성자

Name Description
DeprecatedAttribute(String, DeprecationType, UInt32)

특성의 새 instance 만들고 초기화합니다.

DeprecatedAttribute(String, DeprecationType, UInt32, Platform)

대상 지정을 위한 플랫폼 값을 포함하여 특성의 새 instance 만들고 초기화합니다.

DeprecatedAttribute(String, DeprecationType, UInt32, String)

특성의 새 instance 만들고 초기화합니다.

DeprecatedAttribute(String, DeprecationType, UInt32, Type)

특성의 새 instance 만들고 초기화합니다.

적용 대상