Partilhar via


TrustInfo Class

Definition

Describes the application security trust information.

public ref class TrustInfo sealed
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class TrustInfo
[<System.Runtime.InteropServices.ComVisible(false)>]
type TrustInfo = class
Public NotInheritable Class TrustInfo
Inheritance
TrustInfo
Attributes

Constructors

TrustInfo()

Initializes a new instance of the TrustInfo class.

Properties

HasUnmanagedCodePermission

Determines whether the application has permission to call unmanaged code.

IsFullTrust

Determines whether the application is full trust or partial trust.

PermissionSet

Gets or sets the permission set object for the application trust.

PreserveFullTrustPermissionSet

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.

SameSiteAccess

Describes the level of "same site" access permitted, specifying whether the application has permission to communicate with the server from which it was deployed.

Methods

Clear()

Resets the object to its default state.

Read(Stream)

Reads the application trust from an XML file.

Read(String)

Reads the application trust from an XML file.

ReadManifest(Stream)

Reads the application trust from a ClickOnce application manifest.

ReadManifest(String)

Reads the application trust from a ClickOnce application manifest.

ToString()

Returns all the information in the application security trust object as a string.

Write(Stream)

Writes the application trust to an XML file.

Write(String)

Writes the application trust to an XML file.

WriteManifest(Stream, Stream)

Updates an existing ClickOnce application manifest with the specified trust.

WriteManifest(Stream)

Writes the application trust to a new template ClickOnce application manifest.

WriteManifest(String)

Writes the application trust to a ClickOnce application manifest. If the file exists, the trust section will be updated. If the file does not exist, a new template manifest with the specified trust will be created.

Applies to