共用方式為


Certificate.Create 方法 (String, CertificateSourceType)

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 _
)
'用途
Dim instance As Certificate 
Dim certificateSource As String 
Dim sourceType As CertificateSourceType

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

參數

  • certificateSource
    型別:System.String
    A String value that specifies the source of the certificate.

範例

使用加密

請參閱

參考

Certificate 類別

Create 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

加密階層

CREATE CERTIFICATE (Transact-SQL)