Метод Create (String, CertificateSourceType, String, String)
Creates a certificate on the database that has the specified certificate source type.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public Sub Create ( _
certificateSource As String, _
sourceType As CertificateSourceType, _
privateKeyPath As String, _
privateKeyDecryptionPassword As String _
)
'Применение
Dim instance As Certificate
Dim certificateSource As String
Dim sourceType As CertificateSourceType
Dim privateKeyPath As String
Dim privateKeyDecryptionPassword As String
instance.Create(certificateSource, sourceType, _
privateKeyPath, privateKeyDecryptionPassword)
public void Create(
string certificateSource,
CertificateSourceType sourceType,
string privateKeyPath,
string privateKeyDecryptionPassword
)
public:
void Create(
String^ certificateSource,
CertificateSourceType sourceType,
String^ privateKeyPath,
String^ privateKeyDecryptionPassword
)
member Create :
certificateSource:string *
sourceType:CertificateSourceType *
privateKeyPath:string *
privateKeyDecryptionPassword:string -> unit
public function Create(
certificateSource : String,
sourceType : CertificateSourceType,
privateKeyPath : String,
privateKeyDecryptionPassword : String
)
Параметры
- certificateSource
Тип: System. . :: . .String
A String value that specifies the source of the certificate.
- sourceType
Тип: Microsoft.SqlServer.Management.Smo. . :: . .CertificateSourceType
A CertificateSourceType object value that specifies the certificate source type.
- privateKeyPath
Тип: System. . :: . .String
A String value that specifies the system path for the private key.
- privateKeyDecryptionPassword
Тип: System. . :: . .String
A String value that specifies the password used for decryption of the private key.
См. также