語言

ISecureFactory2.CreateInstanceWithSecurity2 方法

定義

利用部署清單中的資訊,建立一個新的 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

參數

dwFlags
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

wszSite
String

包含將建立安全類別工廠應用程式的網站網址。

wszId
String

網站的獨特身份。

wszConfig
String

網址中的連結部分,可以是相對的。

wszLicenses
String

授權檔案的位置,用來與網域關聯。

wszDeploymentManifest
String

部署清單的位置。

傳回

一個作為新實例包裝器的物件。 必須展開回傳值才能存取真實物件。

適用於