Udostępnij za pośrednictwem


Metoda Create (SymmetricKeyEncryption[], SymmetricKeyEncryptionAlgorithm, SecureString, String)

Tworzy klucz zawartości na bazę danych z szyfrowanie określonego typu i metoda.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Syntax

'Deklaracja
Public Sub Create ( _
    keyEncryptions As SymmetricKeyEncryption(), _
    keyEncryptionAlgorithm As SymmetricKeyEncryptionAlgorithm, _
    passPhrase As SecureString, _
    identityPhrase As String _
)
'Użycie
Dim instance As SymmetricKey
Dim keyEncryptions As SymmetricKeyEncryption()
Dim keyEncryptionAlgorithm As SymmetricKeyEncryptionAlgorithm
Dim passPhrase As SecureString
Dim identityPhrase As String

instance.Create(keyEncryptions, keyEncryptionAlgorithm, _
    passPhrase, identityPhrase)
public void Create(
    SymmetricKeyEncryption[] keyEncryptions,
    SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm,
    SecureString passPhrase,
    string identityPhrase
)
public:
void Create(
    array<SymmetricKeyEncryption^>^ keyEncryptions, 
    SymmetricKeyEncryptionAlgorithm keyEncryptionAlgorithm, 
    SecureString^ passPhrase, 
    String^ identityPhrase
)
member Create : 
        keyEncryptions:SymmetricKeyEncryption[] * 
        keyEncryptionAlgorithm:SymmetricKeyEncryptionAlgorithm * 
        passPhrase:SecureString * 
        identityPhrase:string -> unit 
public function Create(
    keyEncryptions : SymmetricKeyEncryption[], 
    keyEncryptionAlgorithm : SymmetricKeyEncryptionAlgorithm, 
    passPhrase : SecureString, 
    identityPhrase : String
)

Parameters

  • identityPhrase
    Typ: System. . :: . .String
    A String , który określa frazę tożsamości wartość używana do dane znacznika, który jest szyfrowany przy użyciu klucz. Albo passPhrase lub identityPhrase może być null, ale co najmniej jeden musi być zestaw.