DpapiNGXmlEncryptor 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
DpapiNGXmlEncryptor(String, DpapiNGProtectionDescriptorFlags)
建立 的新實例 DpapiNGXmlEncryptor 。
public:
DpapiNGXmlEncryptor(System::String ^ protectionDescriptorRule, Microsoft::AspNetCore::DataProtection::XmlEncryption::DpapiNGProtectionDescriptorFlags flags);
public DpapiNGXmlEncryptor (string protectionDescriptorRule, Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGProtectionDescriptorFlags flags);
new Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGXmlEncryptor : string * Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGProtectionDescriptorFlags -> Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGXmlEncryptor
Public Sub New (protectionDescriptorRule As String, flags As DpapiNGProtectionDescriptorFlags)
參數
- protectionDescriptorRule
- String
要從中建立保護描述元的規則字串。
控制保護描述項建立的旗標。
適用於
DpapiNGXmlEncryptor(String, DpapiNGProtectionDescriptorFlags, ILoggerFactory)
建立 的新實例 DpapiNGXmlEncryptor 。
public:
DpapiNGXmlEncryptor(System::String ^ protectionDescriptorRule, Microsoft::AspNetCore::DataProtection::XmlEncryption::DpapiNGProtectionDescriptorFlags flags, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public DpapiNGXmlEncryptor (string protectionDescriptorRule, Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGProtectionDescriptorFlags flags, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGXmlEncryptor : string * Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGProtectionDescriptorFlags * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGXmlEncryptor
Public Sub New (protectionDescriptorRule As String, flags As DpapiNGProtectionDescriptorFlags, loggerFactory As ILoggerFactory)
參數
- protectionDescriptorRule
- String
要從中建立保護描述元的規則字串。
控制保護描述項建立的旗標。
- loggerFactory
- ILoggerFactory
適用於
DpapiNGXmlEncryptor(String, DpapiNGProtectionDescriptorFlags, IServiceProvider)
建立 的新實例 DpapiNGXmlEncryptor 。
public:
DpapiNGXmlEncryptor(System::String ^ protectionDescriptorRule, Microsoft::AspNetCore::DataProtection::XmlEncryption::DpapiNGProtectionDescriptorFlags flags, IServiceProvider ^ services);
public DpapiNGXmlEncryptor (string protectionDescriptorRule, Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGProtectionDescriptorFlags flags, IServiceProvider services);
new Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGXmlEncryptor : string * Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGProtectionDescriptorFlags * IServiceProvider -> Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiNGXmlEncryptor
Public Sub New (protectionDescriptorRule As String, flags As DpapiNGProtectionDescriptorFlags, services As IServiceProvider)
參數
- protectionDescriptorRule
- String
要從中建立保護描述元的規則字串。
控制保護描述項建立的旗標。
- services
- IServiceProvider
選擇性 IServiceProvider 的 ,可提供輔助服務。