AddInSecurityLevel Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies the trust level that is granted to the application domain that an add-in is loaded into.

Namespace:   System.AddIn.Hosting
Assembly:  System.AddIn (in System.AddIn.dll)

[<SerializableAttribute>]
type AddInSecurityLevel

Member nameDescription
FullTrust

Use the full trust security level for add-ins that are allowed to read and write to the local file system, create network connections, and read from the registry. This security level grants full access to the add-in's code access security (CAS) by applying the Unrestricted field.

Host

Use the host security level to give the add-in the same permissions currently granted to the hosting code.

Internet

Use the Internet security level for add-ins that have a low trust level.

Intranet

Use the Intranet security level for add-ins that are located on a company's intranet. These add-ins can have a greater trust level because the servers and information are within a company's firewall.

The add-in system activates the add-in with the permission set that corresponds to the trust level specified for the add-in's application domain. That permission set is defined by the common language runtime's code access security (CAS) configuration.

The values of this enumeration cannot be combined by using the bitwise OR operation.

The following example activates an add-in with a specified trust level.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.5
Return to top
Show: