नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
Contains a list of cryptography classes that have a mapping to a friendly name in the <nameEntry> element.
<configuration> <mscorlib> <cryptographySettings> <cryptoNameMapping> <cryptoClasses>
Syntax
<cryptoClasses>
</cryptoClasses>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child Elements
| Element | Description |
|---|---|
| <cryptoClass> | Contains a cryptography class that has a mapping to a friendly name in the <nameEntry> element. |
Parent Elements
| Element | Description |
|---|---|
configuration |
The root element in every configuration file used by the common language runtime and .NET Framework applications. |
cryptographySettings |
Contains cryptography settings. |
cryptoNameMapping |
Contains mappings of classes to friendly names. |
mscorlib |
Contains the cryptographySettings element. |
Example
The following example shows how use the <cryptoClass> element to reference a cryptography class and to configure the runtime. You can then pass the string "RSA" to the CryptoConfig.CreateFromName method and use the Create method to return a MyCryptoRSAClass object.
<configuration>
<mscorlib>
<cryptographySettings>
<cryptoNameMapping>
<cryptoClasses>
<cryptoClass MyCryptoRSA="MyCryptoRSAClass, MyAssembly
Culture=neutral, PublicKeyToken=a5d015c7d5a0b012,
Version=1.0.0.0"/>
<!-- Other cryptography classes go here. -->
</cryptoClasses>
<nameEntry name="RSA" class="MyCryptoRSA"/>
<nameEntry name="System.Security.Cryptography.AsymmetricAlgorithm"
class="MyCryptoRSA"/>
<!-- Mappings to other cryptography classes go here. -->
</cryptoNameMapping>
</cryptographySettings>
</mscorlib>
</configuration>