ListSSLCertificateBindings 方法 (WMI MSReportServer_ConfigurationSetting)
返回计算机上已安装的 SSL 证书的列表。
语法
Public Sub ListSSLCertificateBindings(ByVal LCID As Int32, ByRef Application() As String, _
ByRef CertificateHash() As String, ByRef IPAddresses() As String, ByRef Port() As Int32, _
ByRef Errors() As String, ByRef Length As Int32, _
ByRef HRESULT As Int32)
public void ListSSLCertificateBindings(Int32 Lcid, out string[] Application,
out string[] CertificateHash,out string[] IPAddress,
out Int32[] Port, out string Errors,
out Int32 length, out Int32 HRESULT);
参数
LCID
用于返回的错误消息的区域设置。Application[]
[out] 具有证书绑定的应用程序。CertificateHash[]
[out] 证书的哈希。IPAddress[]
[out] 应用程序的 IP 地址。Port[]
[out] 存储在 rsreportserver.config 中的绑定中的端口号。Errors[]
[out] 发生的错误的说明。Length
[out] 该方法返回的数组长度。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(所有版本)