This topic has not yet been rated - Rate this topic

TrustInfo Class

This class represents the application security trust information.

System.Object
  Microsoft.Build.Tasks.Deployment.ManifestUtilities.TrustInfo

Namespace:  Microsoft.Build.Tasks.Deployment.ManifestUtilities
Assembly:  Microsoft.Build.Tasks.v4.0 (in Microsoft.Build.Tasks.v4.0.dll)
[ComVisibleAttribute(false)]
public sealed class TrustInfo

The TrustInfo type exposes the following members.

  Name Description
Public method TrustInfo Initializes a new instance of the TrustInfo class.
Top
  Name Description
Public property HasUnmanagedCodePermission Determines whether the application has permission to call unmanaged code.
Public property IsFullTrust Determines whether the application is full trust or partial trust.
Public property PermissionSet Gets or sets the permission set object for the application trust.
Public property PreserveFullTrustPermissionSet Gets or sets whether to preserve partial trust permission when the full trust flag is set.
Public property SameSiteAccess Gets or sets the level of same site access permitted, specifying whether the application has permission to communicate with the server from which it was deployed.
Top
  Name Description
Public method Clear Resets the TrustInfo object to its default state of full trust.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Read(Stream) Reads the application trust from an XML file.
Public method Read(String) Reads the application trust from an XML file.
Public method ReadManifest(Stream) Reads the application trust from a ClickOnce application manifest.
Public method ReadManifest(String) Reads the application trust from a ClickOnce application manifest.
Public method ToString Returns all the information in the application security trust object as a string. (Overrides Object.ToString().)
Public method Write(Stream) Writes the application trust to an XML file.
Public method Write(String) Writes the application trust to an XML file.
Public method WriteManifest(Stream) Writes the application trust to a new template ClickOnce application manifest.
Public method WriteManifest(String) Writes the application trust to a ClickOnce application manifest.
Public method WriteManifest(Stream, Stream) Updates an existing ClickOnce application manifest with the specified trust.
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ