Share via


TrustInfo.PreserveFullTrustPermissionSet Property

Definition

Determines whether to preserve partial trust permission when the full trust flag is set. If this option is false with full trust specified, then any permissions defined in the permission set object will be dropped on save.

public:
 property bool PreserveFullTrustPermissionSet { bool get(); void set(bool value); };
public bool PreserveFullTrustPermissionSet { get; set; }
public bool PreserveFullTrustPermissionSet { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.PreserveFullTrustPermissionSet : bool with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.PreserveFullTrustPermissionSet : bool with get, set
Public Property PreserveFullTrustPermissionSet As Boolean

Property Value

A Boolean value indicating whether to preserve partial trust permission when the full trust flag is set.

Attributes

Remarks

Normally when IsFullTrust is set to True, all permission settings are deleted. If you want to preserve these settings (typically during design time), you can call this method to persist the permission settings even when IsFullTrust is set to True.

PreserveFullTrustPermissionSet should not be set to True for ClickOnce deployments because this violates ClickOnce schema requirements.

If this property is set to False with full trust specified, then any permissions defined in the permission set object will be dropped on save.

Applies to