ISecureFactory2.CreateInstanceWithSecurity2(Int32, Int32, String, String, String, String, String) 方法

定义

使用部署清单中的信息,创建表示安全类工厂的 COM 类型的新实例。Creates a new instance of a COM type that represents a secure class factory by using information from the deployment manifest.

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

public:
 System::Object ^ CreateInstanceWithSecurity2(int dwFlags, int dwZone, System::String ^ wszSite, System::String ^ wszId, System::String ^ wszConfig, System::String ^ wszLicenses, System::String ^ wszDeploymentManifest);
public object CreateInstanceWithSecurity2 (int dwFlags, int dwZone, string wszSite, string wszId, string wszConfig, string wszLicenses, string wszDeploymentManifest);
abstract member CreateInstanceWithSecurity2 : int * int * string * string * string * string * string -> obj
Public Function CreateInstanceWithSecurity2 (dwFlags As Integer, dwZone As Integer, wszSite As String, wszId As String, wszConfig As String, wszLicenses As String, wszDeploymentManifest As String) As Object

参数

dwFlags
Int32

下列 CORIESECURITY 值之一:One of the following CORIESECURITY values:

- CORIESECURITY_ZONE: 0x01- CORIESECURITY_ZONE: 0x01

- CORIESECURITY_SITE: 0x02- CORIESECURITY_SITE: 0x02

dwZone
Int32

下列 URLZONE 值之一:One of the following URLZONE values:

- URLZONE_LOCAL_MACHINE: 0x00- URLZONE_LOCAL_MACHINE: 0x00

- URLZONE_INTRANET: 0x01- URLZONE_INTRANET: 0x01

- URLZONE_TRUSTED: 0x02- URLZONE_TRUSTED: 0x02

- URLZONE_INTERNET: 0x03- URLZONE_INTERNET: 0x03

- URLZONE_UNTRUSTED: 0x04- URLZONE_UNTRUSTED: 0x04

wszSite
String

站点的 URL,该站点包含将为其创建安全类工厂的应用程序。The URL for the site that contains the application for which the secure class factory will be created.

wszId
String

站点的唯一标识符。The unique identity for the site.

wszConfig
String

URL 的链接部分,可以是相对的。The link portion of the URL, which can be relative.

wszLicenses
String

要与域关联的许可证文件的位置。The location of the license files to associate with the domain.

wszDeploymentManifest
String

部署清单的位置。The location of the deployment manifest.

返回

Object

一个对象,该对象是新实例的包装器。An object that is a wrapper for the new instance. 返回值需要打开包装才能访问真实对象。The return value must be unwrapped to access the real object.

适用于