ISecureFactory2.CreateInstanceWithSecurity2 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用部署清单中的信息创建表示安全类工厂的 COM 类型的新实例。
此 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
参数
- dwZone
- Int32
以下 URLZONE 值之一:
URLZONE_LOCAL_MACHINE:0x00
URLZONE_INTRANET:0x01
URLZONE_TRUSTED:0x02
URLZONE_INTERNET:0x03
URLZONE_UNTRUSTED:0x04
- wszSite
- String
包含将为其创建安全类工厂的应用程序的网站的 URL。
- wszId
- String
站点的唯一标识。
- wszConfig
- String
URL 的链接部分,可以是相对的。
- wszLicenses
- String
要与域关联的许可证文件的位置。
- wszDeploymentManifest
- String
部署清单的位置。
返回
作为新实例的包装器的对象。 必须取消包装返回值才能访问实际对象。