Share via


ICLRHostProtectionManager Interface

Enables the host to block specific managed classes, methods, properties, and fields from running in partially trusted code.

interface ICLRHostProtectionManager : IUnknown {
    HRESULT  SetEagerSerializeGrantSets ();
    HRESULT  SetProtectedCategories (
        [in] EApiCategories categories
    );
}

Methods

Method Description

ICLRHostProtectionManager::SetEagerSerializeGrantSets Method

Provides a guarantee that certain rare race conditions that can cause fatal common language runtime (CLR) errors will never arise.

ICLRHostProtectionManager::SetProtectedCategories Method

Specifies the categories of managed types and members that should be blocked from running in partially trusted code.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: MSCorEE.idl

Library: Included as a resource in MSCorEE.dll

.NET Framework Version: 2.0

See Also

Reference

EApiCategories Enumeration
ICLRControl Interface