IInternalConfigHost.EncryptSection Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Krypterar ett konfigurationsavsnitt och returnerar det som en sträng.
public:
System::String ^ EncryptSection(System::String ^ clearTextXml, System::Configuration::ProtectedConfigurationProvider ^ protectionProvider, System::Configuration::ProtectedConfigurationSection ^ protectedConfigSection);
public string EncryptSection(string clearTextXml, System.Configuration.ProtectedConfigurationProvider protectionProvider, System.Configuration.ProtectedConfigurationSection protectedConfigSection);
abstract member EncryptSection : string * System.Configuration.ProtectedConfigurationProvider * System.Configuration.ProtectedConfigurationSection -> string
Public Function EncryptSection (clearTextXml As String, protectionProvider As ProtectedConfigurationProvider, protectedConfigSection As ProtectedConfigurationSection) As String
Parametrar
- clearTextXml
- String
En XML-sträng som representerar ett konfigurationsavsnitt som ska krypteras.
- protectionProvider
- ProtectedConfigurationProvider
Objektet ProtectedConfigurationProvider.
- protectedConfigSection
- ProtectedConfigurationSection
Objektet ProtectedConfigurationSection.
Returer
Ett krypterat konfigurationsavsnitt som representeras som en sträng.