SqlConnection.RegisterColumnEncryptionKeyStoreProviders Méthode

Définition

Inscrit les fournisseurs de magasin de clés de chiffrement de colonne.

public:
 static void RegisterColumnEncryptionKeyStoreProviders(System::Collections::Generic::IDictionary<System::String ^, System::Data::SqlClient::SqlColumnEncryptionKeyStoreProvider ^> ^ customProviders);
public static void RegisterColumnEncryptionKeyStoreProviders (System.Collections.Generic.IDictionary<string,System.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider> customProviders);
static member RegisterColumnEncryptionKeyStoreProviders : System.Collections.Generic.IDictionary<string, System.Data.SqlClient.SqlColumnEncryptionKeyStoreProvider> -> unit
Public Shared Sub RegisterColumnEncryptionKeyStoreProviders (customProviders As IDictionary(Of String, SqlColumnEncryptionKeyStoreProvider))

Paramètres

customProviders
IDictionary<String,SqlColumnEncryptionKeyStoreProvider>

Fournisseurs personnalisés.

Exemples

Dictionary<string, SqlColumnEncryptionKeyStoreProvider> customKeyStoreProviders = new Dictionary<string, SqlColumnEncryptionKeyStoreProvider>();
MySqlClientHSMProvider myProvider = new MySqlClientHSMProvider();
customKeyStoreProviders.Add(@"HSM Provider", myProvider);
SqlConnection.RegisterColumnEncryptionKeyStoreProviders(customKeyStoreProviders)

S’applique à