【问题标题】:Implementing IHttpSecurity in .NET (managed code)在 .NET 中实现 IHttpSecurity(托管代码)
【发布时间】:2010-09-29 12:55:19
【问题描述】:

如何在 .NET 中为 Webbrowser Control 实现 IHttpSecurity?

我找不到任何示例,所有示例都使用 C++,而且 MSDN 文档仅适用于 C++

【问题讨论】:

    标签: .net webbrowser-control


    【解决方案1】:

    您将不得不为此使用 COM 互操作。在 IDL 文件 (urlmon.idl) 中查找接口的 IID (guid),然后在代码中重新创建接口。您可能必须将 PreserveSig 属性附加到 OnSecurityProblem 接口,以便您可以返回适当的错误代码。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-14
      • 1970-01-01
      • 1970-01-01
      • 2011-02-05
      • 1970-01-01
      • 2010-12-07
      相关资源
      最近更新 更多