This documentation is archived and is not being maintained.

ICLRDomainManager::SetPropertiesForDefaultAppDomain Method

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

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


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


[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".


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

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




The method completed successfully.


pwszPropertyNames includes a property name that is not recognized by this method.

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.

Platforms: See .NET Framework System Requirements.

Header: MetaHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4