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[], IDictionary)

Creates a new application domain with the given name using, evidence, a set of context policies, and a set of property name/value pairs. The property name/value pairs are stored in the application domain's property bag. The GetData and the SetData methods can be used to respectively get and set the values of the properties.

[Visual Basic]
Overloads Public Shared Function CreateDomain( _
   ByVal friendlyName As String, _
   ByVal securityInfo As Evidence, _
   ByVal policies() As Object, _
   ByVal properties As IDictionary _
) As AppDomain
[C#]
public static AppDomain CreateDomain(
   string friendlyName,
   Evidence securityInfo,
   object[] policies,
   IDictionary properties
);
[C++]
public: static AppDomain* CreateDomain(
   String* friendlyName,
   Evidence* securityInfo,
   Object* policies[],
   IDictionary* properties
);
[JScript]
public static function CreateDomain(
   friendlyName : String,
   securityInfo : Evidence,
   policies : Object[],
   properties : IDictionary
) : 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.
properties
A dictionary of property name/value pairs to be stored in the property bag.

Return Value

The newly created application domain.

See Also

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