Export (0) Print
Expand All

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
);

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.

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.

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

Community Additions

ADD
Show:
© 2015 Microsoft