PreserveAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Please use [System.Diagnostics.CodeAnalysis.DynamicDependencyAttribute]
Identifies code that older Android linkers should preserve. This attribute is obsolete; annotated members may still be trimmed. Use DynamicDependencyAttribute instead.
[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
- Inheritance
-
PreserveAttribute
- Attributes
Constructors
| Name | Description |
|---|---|
| PreserveAttribute() |
Initializes a new instance of this obsolete attribute. |
Fields
| Name | Description |
|---|---|
| AllMembers |
When set to |
| Conditional |
When set to |