Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Contains the <cryptographySettings> element.
<configuration>
<mscorlib>
<mscorlib>
</mscorlib>
Child Elements
| Element | Description |
|---|---|
| <cryptographySettings> | Contains cryptography settings. |
Example
The following example shows how the <mscorlib> element contains the elements necessary to configure the runtime so that System.Security.CryptoConfig.CreateFromName("RSA") and System.Security.Cryptography.AsymmetricAlgorithm.Create return a MyCryptoRSAClass object.
<configuration>
<mscorlib>
<cryptographySettings>
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass MyCryptoRSA="MyCryptoRSAClass, MyAssembly
Culture=neutral, PublicKeyToken=a5d015c7d5a0b012,
Version=1.0.0.0"/>
</cryptoClasses>
<nameEntry name="RSA" class="MyCryptoRSA"/>
<nameEntry name="System.Security.Cryptography.AsymmetricAlgorithm"
class="MyCryptoRSA"/>
</cryptoNameMapping>
</cryptographySettings>
</mscorlib>
</configuration>
Configuration File
This element can be used in the machine configuration file (Machine.config).
See Also
Configuration File Schema | Cryptography Settings Schema | Cryptographic Services | System.Security.Cryptography.CryptoConfig.CreateFromName | System.Security.Cryptography | Configuring Cryptography Classes