This documentation is archived and is not being maintained.

add Element for partialTrustVisibleAssemblies (ASP.NET Settings Schema)

Visual Studio 2010

Adds a partial-trust visible assembly reference to an application.

<configuration> Element
  system.web Element (ASP.NET Settings Schema)
    partialTrustVisibleAssemblies Element (ASP.NET Settings Schema)
      add Element for partialTrustVisibleAssemblies (ASP.NET Settings Schema)
<add
    assemblyName = "Assembly_Name"
    publicKey = "Public_Key"
/>

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

assemblyName

Required attribute.

Specifies the full name of the assembly.

publicKey

Required attribute.

A string that contains a hexadecimal representation of the public key that is associated with the assembly.

Child Elements

None.

Parent Elements

Element

Description

configuration

Specifies the required root element in every configuration file that is used by the common language runtime and .NET Framework applications.

system.web

Specifies the root element for the ASP.NET configuration section.

partialTrustVisibleAssemblies

Configures a set of partial-trust visible assemblies for an application.

Show: