Share via


ICLRHostBindingPolicyManager Interface

Provides methods for the host to evaluate current binding policy and communicate policy changes for a specified assembly.

interface ICLRHostBindingPolicyManager : IUnknown {
    HRESULT EvaluatePolicy (
        [in] LPCWSTR pwzReferenceIdentity,
        [in] BYTE *pbApplicationPolicy,
        [in] DWORD cbAppPolicySize,
        [out, size_is(*pcchPostPolicyReferenceIdentity)] LPWSTR pwzPostPolicyReferenceIdentity,
        [in, out] DWORD *pcchPostPolicyReferenceIdentity,
        [out] DWORD *pdwPoliciesApplied
    );
    HRESULT ModifyApplicationPolicy (
        [in] LPCWSTR pwzSourceAssemblyIdentity,
        [in] LPCWSTR pwzTargetAssemblyIdentity,
        [in] BYTE *pbApplicationPolicy,
        [in] DWORD cbAppPolicySize,
        [in] DWORD dwPolicyModifyFlags,
        [out, size_is(*pcbNewAppPolicySize)] BYTE  *pbNewApplicationPolicy,
        [in, out] DWORD *pcbNewAppPolicySize
    );
};

Methods

Method Description

ICLRHostBindingPolicyManager::EvaluatePolicy Method

Evaluates binding policy on behalf of the host.

ICLRHostBindingPolicyManager::ModifyApplicationPolicy Method

Modifies the binding policy for the specified assembly, and creates a new version of the policy.

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

ICLRAssemblyIdentityManager Interface
IHostAssemblyStore Interface

Other Resources

Hosting Interfaces