Freigeben über


TrustInfo.PreserveFullTrustPermissionSet Property

Gets or sets whether to preserve partial trust permission when the full trust flag is set.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Tasks.Deployment.ManifestUtilities
Assembly:  Microsoft.Build.Tasks.Core (in Microsoft.Build.Tasks.Core.dll)

Syntax

'Declaration
Public Property PreserveFullTrustPermissionSet As Boolean
public bool PreserveFullTrustPermissionSet { get; set; }
public:
property bool PreserveFullTrustPermissionSet {
    bool get ();
    void set (bool value);
}
member PreserveFullTrustPermissionSet : bool with get, set
function get PreserveFullTrustPermissionSet () : boolean 
function set PreserveFullTrustPermissionSet (value : boolean)

Property Value

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

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.

.NET Framework Security

See Also

Reference

TrustInfo Class

Microsoft.Build.Tasks.Deployment.ManifestUtilities Namespace