ISecureFactory2.CreateInstanceWithSecurity 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建表示安全类工厂的 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
参数
- 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
要与域关联的许可证文件的位置。
返回
作为新实例的包装器的对象。 必须取消包装返回值才能访问实际对象。