ICLRDomainManager::SetPropertiesForDefaultAppDomain Method

Sets properties that will be used to initialize the default application domain.

Syntax

HRESULT SetPropertiesForDefaultAppDomain(  
    [in] DWORD nProperties,  
    [in] LPCWSTR *pwszPropertyNames,  
    [in] LPCWSTR *pwszPropertyValues  
);  

Parameters

nProperties
[in] The number of entries in pwszPropertyNames and pwszPropertyValues.

pwszPropertyNames
[in] An array of property names, or null if there are no properties. Currently, the only property name that is recognized by this method is "PARTIAL_TRUST_VISIBLE_ASSEMBLIES".

pwszPropertyValues
[in] An array of property values, or null if there are no properties.

Return Value

This method returns the following specific HRESULTs as well as HRESULT errors that indicate method failure.

HRESULT Description
S_OK The method completed successfully.
HRESULT_FROM_WIN32(ERROR_UNKNOWN_PROPERTY) pwszPropertyNames includes a property name that is not recognized by this method.

Remarks

The property value for "PARTIAL_TRUST_VISIBLE_ASSEMBLIES" is a list of assemblies that have the conditional AllowPartiallyTrustedCallersAttribute (APTCA) attribute with the PartialTrustVisibilityLevel.NotVisibleByDefault flag, which are to be made visible to partially trusted callers in the default application domain.

Requirements

Platforms: See System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: Available since 4

See also