Compartilhar via


Método Certificate.Create (String, CertificateSourceType, String, String, String)

Creates a certificate on the database that has the specified certificate source type.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Sub Create ( _
    certificateSource As String, _
    sourceType As CertificateSourceType, _
    privateKeyPath As String, _
    privateKeyDecryptionPassword As String, _
    privateKeyEncryptionPassword As String _
)
'Uso
Dim instance As Certificate 
Dim certificateSource As String 
Dim sourceType As CertificateSourceType 
Dim privateKeyPath As String 
Dim privateKeyDecryptionPassword As String 
Dim privateKeyEncryptionPassword As String

instance.Create(certificateSource, sourceType, _
    privateKeyPath, privateKeyDecryptionPassword, _
    privateKeyEncryptionPassword)
public void Create(
    string certificateSource,
    CertificateSourceType sourceType,
    string privateKeyPath,
    string privateKeyDecryptionPassword,
    string privateKeyEncryptionPassword
)
public:
void Create(
    String^ certificateSource, 
    CertificateSourceType sourceType, 
    String^ privateKeyPath, 
    String^ privateKeyDecryptionPassword, 
    String^ privateKeyEncryptionPassword
)
member Create : 
        certificateSource:string * 
        sourceType:CertificateSourceType * 
        privateKeyPath:string * 
        privateKeyDecryptionPassword:string * 
        privateKeyEncryptionPassword:string -> unit
public function Create(
    certificateSource : String, 
    sourceType : CertificateSourceType, 
    privateKeyPath : String, 
    privateKeyDecryptionPassword : String, 
    privateKeyEncryptionPassword : String
)

Parâmetros

  • certificateSource
    Tipo: System.String
    A String value that specifies the source of the certificate.
  • privateKeyPath
    Tipo: System.String
    A String value that specifies the system path for the private key.
  • privateKeyDecryptionPassword
    Tipo: System.String
    A String value that specifies the password used for decryption of the private key.
  • privateKeyEncryptionPassword
    Tipo: System.String
    A String value that specifies the password used for encryption of the private key.

Exemplos

Usando a criptografia

Consulte também

Referência

Certificate Classe

Sobrecarregado Create

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Hierarquia de criptografia

CREATE CERTIFICATE (Transact-SQL)