다음을 통해 공유


<assemblyIdentity> Element

Contains identifying information about the assembly.

<configuration>
   <runtime>
      <assemblyBinding>
         <dependentAssembly>
            <assemblyIdentity>

<assemblyIdentity 
   name="assembly name"
   publicKeyToken="public key token"
   culture="assembly culture"/>

Required Attribute

Attribute Description
name The name of the assembly.

Optional Attributes

Attribute Description
publicKeyToken A hexadecimal value that specifies the strong name of the assembly.
culture A string that specifies the language and country/region of the assembly.

Remarks

Every <dependentAssembly> element must have one <assemblyIdentity> child element.

Example

The following example shows how to provide information about an assembly.

<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <dependentAssembly>
            <assemblyIdentity name="myAssembly"
                              publicKeyToken="32ab4ba45e0a69a1"
                              culture="neutral" />
            <!--Redirection and codeBase policy for myAssembly.-->
         </dependentAssembly>
      </assemblyBinding>
   </runtime>
</configuration>

Configuration File

This element can be used in the application configuration file, machine configuration file (Machine.config), and the publisher policy file.

See Also

Runtime Settings Schema | Configuration File Schema | Redirecting Assembly Versions