共用方式為


ISecureFactory2.CreateInstanceWithSecurity 方法

定義

建立 COM 類型的新執行個體,代表安全 Class Factory。

此 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

包含要為其建立安全 Class Factory 應用程式的網站 URL。

lpId
String

網站的唯一識別。

lpLink
String

URL 的連結部分 (可為相對連結)。

lpLicenses
String

要與網域建立關聯的授權檔案位置。

傳回

作為新執行個體包裝函式的物件。 必須將傳回值解除包裝才能存取實際物件。

實作

適用於