PreserveAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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
- 特性
构造函数
| 名称 | 说明 |
|---|---|
| PreserveAttribute() |
已过时.
初始化此过时属性的新实例。 |
字段
| 名称 | 说明 |
|---|---|
| AllMembers |
已过时.
当设置为 |
| Conditional |
已过时.
在方法上设置为 |