SecureFactory.CreateInstanceWithSecurity Method

Definition

Creates a new instance of a COM type that represents a secure class factory.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 virtual System::Object ^ CreateInstanceWithSecurity(int dwFlag, int dwZone, System::String ^ pURL, System::String ^ uniqueIdString, System::String ^ link, System::String ^ licenses);
public virtual object CreateInstanceWithSecurity (int dwFlag, int dwZone, string pURL, string uniqueIdString, string link, string licenses);
abstract member CreateInstanceWithSecurity : int * int * string * string * string * string -> obj
override this.CreateInstanceWithSecurity : int * int * string * string * string * string -> obj
Public Overridable Function CreateInstanceWithSecurity (dwFlag As Integer, dwZone As Integer, pURL As String, uniqueIdString As String, link As String, licenses As String) As Object

Parameters

dwFlag
Int32

One of the following CORIESECURITY values:

  • CORIESECURITY_ZONE: 0x01

  • CORIESECURITY_SITE: 0x02

dwZone
Int32

One of the following URLZONE values:

  • URLZONE_LOCAL_MACHINE: 0x00

  • URLZONE_INTRANET: 0x01

  • URLZONE_TRUSTED: 0x02

  • URLZONE_INTERNET: 0x03

  • URLZONE_UNTRUSTED: 0x04

pURL
String

The URL for the site that contains the application for which the secure class factory will be created.

uniqueIdString
String

The unique identity for the site.

link
String

The link portion of the URL, which can be relative.

licenses
String

The location of the license files to associate with the domain.

Returns

An object that is a wrapper for the new instance. The return value must be unwrapped to access the real object.

Implements

Applies to