Udostępnij za pośrednictwem


PreserveAttribute Class

Definition

When applied to a target (e.g. assembly, class, member, etc.), instructs the Xamarin linker to preserve that target in the linking process result.

[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
Inheritance
PreserveAttribute
Attributes

Constructors

PreserveAttribute()

Fields

AllMembers

Preserve all members

Conditional

Apply a condition to determine which members to preserve.

Applies to