<mscorlib> Element for Cryptography Settings
Contains the <cryptographySettings> element.
<configuration>
<mscorlib>
Syntax
<mscorlib>
</mscorlib>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child Elements
Element | Description |
---|---|
cryptographySettings |
Contains cryptography settings. |
Parent Elements
Element | Description |
---|---|
configuration |
The root element in every configuration file used by the common language runtime and .NET Framework applications. |
Example
The following example shows how to use the <mscorlib> 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"/>
</cryptoClasses>
<nameEntry name="RSA" class="MyCryptoRSA"/>
<nameEntry name="System.Security.Cryptography.AsymmetricAlgorithm"
class="MyCryptoRSA"/>
</cryptoNameMapping>
</cryptographySettings>
</mscorlib>
</configuration>
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ