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(所有版本)