DirectoryModuleCatalog.BuildChildDomain Method

Creates a new child domain and copies the evidence from a parent domain.

Namespace:  Microsoft.Practices.Composite.Modularity
Assembly:  Microsoft.Practices.Composite (in Microsoft.Practices.Composite.dll)

Syntax

'Declaration
Protected Overridable Function BuildChildDomain ( _
    parentDomain As AppDomain _
) As AppDomain
protected virtual AppDomain BuildChildDomain(
    AppDomain parentDomain
)
protected:
virtual AppDomain^ BuildChildDomain(
    AppDomain^ parentDomain
)
function buildChildDomain(parentDomain);

Parameters

Return Value

The new child domain.

Remarks

Grabs the parentDomain evidence and uses it to construct the new AppDomain because in a ClickOnce execution environment, creating an AppDomain will by default pick up the partial trust environment of the AppLaunch.exe, which was the root executable. The AppLaunch.exe does a create domain and applies the evidence from the ClickOnce manifests to create the domain that the application is actually executing in. This will need to be Full Trust for Composite Application Library applications.

See Also

DirectoryModuleCatalog Class

Microsoft.Practices.Composite.Modularity Namespace