언어

PreserveAttribute 클래스

정의

주의

Please use [System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute]

이전 Android 링커가 유지해야 하는 코드를 식별합니다. 이 특성은 사용되지 않습니다. 주석이 추가된 멤버는 여전히 잘립니다. DynamicDependencyAttribute를 대신 사용하세요.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Struct)]
[System.Obsolete("Please use [System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute]")]
public sealed class PreserveAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Constructor | System.AttributeTargets.Delegate | System.AttributeTargets.Enum | System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Interface | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Struct)>]
[<System.Obsolete("Please use [System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute]")>]
type PreserveAttribute = class
    inherit Attribute
상속
PreserveAttribute
특성

생성자

속성 Description
PreserveAttribute()
사용되지 않음.

이 사용되지 않는 특성의 새 인스턴스를 초기화합니다.

필드

속성 Description
AllMembers
사용되지 않음.

형식에서 true 설정된 경우 이전 Android 링커는 이 필드를 사용하여 형식의 필드와 메서드를 유지했습니다. 이 사용되지 않는 특성은 더 이상 보존을 보장하지 않습니다.

Conditional
사용되지 않음.

메서드에서 설정 true 하면 이전 Android 링커는 선언 형식을 강제로 유지하지 않고 선언 형식이 유지될 때 메서드를 유지했습니다. 이 사용되지 않는 특성은 더 이상 보존을 보장하지 않습니다.

적용 대상