ISecureFactory2.CreateInstanceWithSecurity 方法

定义

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

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

public:
 System::Object ^ CreateInstanceWithSecurity(int dwIdentityFlag, int dwZone, System::String ^ lpSite, System::String ^ lpId, System::String ^ lpLink, System::String ^ lpLicenses);
public object CreateInstanceWithSecurity (int dwIdentityFlag, int dwZone, string lpSite, string lpId, string lpLink, string lpLicenses);
abstract member CreateInstanceWithSecurity : int * int * string * string * string * string -> obj
Public Function CreateInstanceWithSecurity (dwIdentityFlag As Integer, dwZone As Integer, lpSite As String, lpId As String, lpLink As String, lpLicenses As String) As Object

参数

dwIdentityFlag
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

lpSite
String

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

lpId
String

站点的唯一标识符。

lpLink
String

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

lpLicenses
String

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

返回

Object

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

实现

适用于