你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PreserveAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
应用于目标 (例如程序集、类、成员等) 时,指示 Xamarin 链接器在链接过程结果中保留该目标。
[System.AttributeUsage(System.AttributeTargets.All)]
public sealed class PreserveAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.All)>]
type PreserveAttribute = class
inherit Attribute
Public NotInheritable Class PreserveAttribute
Inherits Attribute
- 继承
-
PreserveAttribute
- 属性
构造函数
PreserveAttribute() |
应用于目标 (例如程序集、类、成员等) 时,指示 Xamarin 链接器在链接过程结果中保留该目标。 |
字段
AllMembers |
保留所有成员 |
Conditional |
应用条件以确定要保留的成员。 |