RemoveSSLCertificateBindings 方法 (WMI MSReportServer_ConfigurationSetting)

删除 SSL 证书绑定。

语法

Public Sub RemoveSSLCertificateBinding(ByVal Application As String, _
    ByVal CertificateHash As String, ByVal IPAddress As String, _
    ByVal Port As Int32, ByVal Lcid As Int32, _
    ByRef [Error] As String, ByRef HRESULT As Int32)
public void RemoveSSLCertificateBindings(string Application,
    string CertificateHash, string IPAddress, Int32 Port, Int32 Lcid,
    out string Error, out Int32 HRESULT);

参数

  • Application
    应为其删除证书绑定的应用程序的名称。

  • CertificateHash
    证书的哈希。

  • IPAddress
    应用程序的 IP 地址。

  • Port
    与该绑定关联的 SSL 端口。

  • lcid
    用于返回的错误消息的区域设置。

  • Error
    [out] 发生的错误的说明。

  • HRESULT
    [out] 指示调用是成功还是失败的值。

返回值

返回 HRESULT,指示方法调用是成功还是失败。值 0 指示方法调用已成功;错误代码指示调用未成功。

注释

此方法可以从 rsreportserver.config 文件中删除特定的绑定,也可以选择从 HTTP.SYS 中删除特定的绑定。

要求

命名空间: 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(所有版本)