ListSSLCertificates 方法 (WMI MSReportServer_ConfigurationSetting)
傳回報表伺服器電腦上的憑證清單。
語法
Public Sub CreateSSLCertificateBinding (ByRef CertificateHash() as String, _
ByRef CertName() as String, ByRef HostName() as String, ByRef Length as Int32, _
ByRef HRESULT as Int32)
public void ListSSLCertificates(out string[] CertificateHash,
out string[] CertName, out string[] Hostname, out Int32 length,
out Int32 HRESULT);
參數
CertificateHash[]
[out] 憑證雜湊。CertName[]
[out] 憑證的名稱。HostName[]
[out] 憑證的主機名稱。Length
[out] 代表 CertificateHash、CertName 和 HostName 陣列的長度。HRESULT
[out] 指出呼叫成功或失敗的值。
傳回值
傳回 HRESULT,指出方法呼叫成功或失敗。值為 0 表示方法呼叫成功。錯誤碼則表示呼叫不成功。
需求
**命名空間:**root\Microsoft\SqlServer\ReportServer\RS_<EncodedInstanceName>\v10\Admin
**平台:**Windows Server 2003 Datacenter Edition;Windows Server 2003 Enterprise Edition;Windows Server 2003 Standard Edition;Windows Vista;Windows XP Professional Service Pack 2 (SP2) 或 Service Pack 1 (SP1);或 Windows 2000 (所有版本)