SecureFactory.CreateInstanceWithSecurity 方法

定义

创建一个表示安全类工厂的 COM 类型的新实例。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 virtual System::Object ^ CreateInstanceWithSecurity(int dwFlag, int dwZone, System::String ^ pURL, System::String ^ uniqueIdString, System::String ^ link, System::String ^ licenses);
public virtual object CreateInstanceWithSecurity (int dwFlag, int dwZone, string pURL, string uniqueIdString, string link, string licenses);
abstract member CreateInstanceWithSecurity : int * int * string * string * string * string -> obj
override this.CreateInstanceWithSecurity : int * int * string * string * string * string -> obj
Public Overridable Function CreateInstanceWithSecurity (dwFlag As Integer, dwZone As Integer, pURL As String, uniqueIdString As String, link As String, licenses As String) As Object

参数

dwFlag
Int32

下列 CORIESECURITY 值之一:

  • CORIESECURITY_ZONE:0x01

  • CORIESECURITY_SITE:0x02

dwZone
Int32

下列 URLZONE 值之一:

  • URLZONE_LOCAL_MACHINE:0x00

  • URLZONE_INTRANET:0x01

  • URLZONE_TRUSTED:0x02

  • URLZONE_INTERNET:0x03

  • URLZONE_UNTRUSTED:0x04

pURL
String

站点的 URL,该站点包含将为其创建安全类工厂的应用程序。

uniqueIdString
String

站点的唯一标识符。

link
String

URL 的链接部分,可以是相对的。

licenses
String

要与域关联的许可证文件的位置。

返回

一个对象,该对象是新实例的包装器。 返回值需要打开包装才能访问真实对象。

实现

适用于