NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

AppDomain.CreateDomain (String, Evidence, Object[], String, String, String, Boolean, Int64)

Creates a new application domain with the given name using, evidence, a set of context policies, application base path, relative search path, shared search path, snapshot ID, and a parameter that specifies whether a shadow copy of an assembly is to be loaded in to the application domain.

[Visual Basic]
Overloads Public Shared Function CreateDomain( _
   ByVal friendlyName As String, _
   ByVal securityInfo As Evidence, _
   ByVal policies() As Object, _
   ByVal appBasePath As String, _
   ByVal appRelativeSearchPath As String, _
   ByVal sharedSearchPath As String, _
   ByVal shadowCopyFiles As Boolean, _
   ByVal snapshotID As Long _
) As AppDomain
[C#]
public static AppDomain CreateDomain(
   string friendlyName,
   Evidence securityInfo,
   object[] policies,
   string appBasePath,
   string appRelativeSearchPath,
   string sharedSearchPath,
   bool shadowCopyFiles,
   long snapshotID
);
[C++]
public: static AppDomain* CreateDomain(
   String* friendlyName,
   Evidence* securityInfo,
   Object* policies[],
   String* appBasePath,
   String* appRelativeSearchPath,
   String* sharedSearchPath,
   bool shadowCopyFiles,
   __int64 snapshotID
);
[JScript]
public static function CreateDomain(
   friendlyName : String,
   securityInfo : Evidence,
   policies : Object[],
   appBasePath : String,
   appRelativeSearchPath : String,
   sharedSearchPath : String,
   shadowCopyFiles : Boolean,
   snapshotID : long
) : AppDomain;

Parameters

friendlyName
The friendly name of the domain. This friendly name can be displayed in user interfaces to identify the domain. See the description of FriendlyName.
securityInfo
An optional array of Evidence objects representing evidence that is mapped through security policy to establish a top-of-stack permission set.
policies
An optional array of context policies to be added to the basic policies of the domain.
appBasePath
The base directory that the assembly resolver uses to probe for assemblies. See the description of BaseDirectory.
appRelativeSearchPath
The path relative to the base directory where the assembly resolver should probe for private assemblies. See the description of RelativeSearchPath.
sharedSearchPath
The path relative to the base directory where the assembly resolver should probe for shared assemblies. See the description of SharedSearchPath.
shadowCopyFiles
If true, a shadow copy of an assembly is loaded into this application domain.
snapshotID
The SnapshotID used by the assembly resolver to track what assemblies are loaded in an application domain.

Return Value

The newly created application domain.

See Also

AppDomain Class | AppDomain Members | System Namespace | AppDomain.CreateDomain Overload List