مشاركة عبر


واجهة ICorRuntimeHost

Provides وظائف that تمكين the مضيف إلى يبدأ و إيقاف the وقت تشغيل اللغة العامة (CLR) بوضوح, إلى إنشاء و تكوين تطبيق domains, إلى الوصول the الافتراضي مجال, و إلى enumerate الجميع domains running في the عملية.

في the .NET الإصدار إطار العمل 2.0, this واجهة هو superceded بواسطة ICLRRuntimeHost.

interface ICorRuntimeHost : IUnknown { 
    HRESULT CloseEnum (
        [in] HCORENUM hEnum
    );
    HRESULT CreateDomain (
        [in] LPWSTR pwzFriendlyName,
        [in] IUnknown* pIdentityArray, 
        [out] void ** pAppDomain
    );
    HRESULT CreateDomainEx (
        [in] LPCWSTR pwzFriendlyName, 
        [in] IUnknown* pSetup, 
        [in] IUnknown* pEvidence, 
        [out] IUnknown** pAppDomain
    );
    HRESULT CreateDomainSetup (
        [out] IUnknown** pAppDomainSetup
    );
    HRESULT CreateEvidence (
        [out] IUnknown** pEvidence
    );
    HRESULT CreateLogicalThreadState();
    HRESULT CurrentDomain (
        [out] IUnknown** pAppDomain
    );
    HRESULT DeleteLogicalThreadState();
    HRESULT EnumDomains (
        [out] HCORENUM *hEnum
    );
    HRESULT GetConfiguration(
        [out] ICorConfiguration** pConfiguration
    );
    HRESULT GetDefaultDomain (
        [out] IUnknown** pAppDomain
    );
    HRESULT LocksHeldByLogicalThread(
        [out] DWORD *pCount 
    );
    HRESULT NextDomain (
        [in] HCORENUM hEnum,
        [out] void** pAppDomain
    );
    HRESULT Start ();
    HRESULT Stop ();
    HRESULT SwitchInLogicalThreadState(
        [in] DWORD *pFiberCookie);
    HRESULT SwitchOutLogicalThreadState(
        [out] DWORD **pFiberCookie);
    HRESULT UnloadDomain (
        [in] IUnknown* pAppDomain
    ); 
}

الأساليب

Method

الوصف

أسلوب ICorRuntimeHost::CloseEnum

Resets a مجال العداد الخلف إلى the beginning of the مجال قائمة.

أسلوب ICorRuntimeHost::CreateDomain

قم بإنشاء في مجال تطبيق. The caller receives an واجهة مؤشر of نوع _AppDomain إلى an مثيل of نوع System.AppDomain.

أسلوب ICorRuntimeHost::CreateDomainEx

قم بإنشاء في مجال تطبيق. يسمح هذا الأسلوب للطالب إلى تمرير مثيل IAppDomainSetup إلى تكوين الميزات الإضافية التي تم إرجاعها _AppDomainالمثيل.

أسلوب ICorRuntimeHost::CreateDomainSetup

Gets an واجهة مؤشر of نوع IAppDomainSetup إلى an AppDomainSetup مثيل. IAppDomainSetup provides وظائف إلى تكوين aspects of an مجال تطبيق قبل it هو تاريخ الإنشاء.

أسلوب ICorRuntimeHost::CreateEvidence

Gets an واجهة مؤشر of نوع IIdentity, which allows the مضيف إلى إنشاء الأمان دليل إلى pass إلى CreateDomain أو CreateDomainEx.

أسلوب ICorRuntimeHost::CreateLogicalThreadState

لا تستخدم.

أسلوب ICorRuntimeHost::CurrentDomain

Gets an واجهة pointer of نوع _AppDomain that represents the مجال تم تحميله تشغيل the الحالي مؤشر ترابط.

أسلوب ICorRuntimeHost::DeleteLogicalThreadState

لا تستخدم.

أسلوب ICorRuntimeHost::EnumDomains

Gets an العداد for the domains في the الحالي عملية.

أسلوب ICorRuntimeHost::GetConfiguration

Gets an كائن that allows the مضيف إلى specify the callback تكوين of the CLR.

أسلوب ICorRuntimeHost::GetDefaultDomain

Gets an واجهة مؤشر of نوع _AppDomain that represents the الافتراضي مجال for the الحالي عملية.

أسلوب ICorRuntimeHost::LocksHeldByLogicalThread

لا تستخدم.

أسلوب ICorRuntimeHost::MapFile

خرائط the specified ملف في ذاكرة. هذا الأسلوب مهمل.

أسلوب ICorRuntimeHost::NextDomain

Gets an واجهة مؤشر إلى the التالي مجال في the قائمة تعداد.

أسلوب ICorRuntimeHost::يبدأ

Starts the CLR.

أسلوب ICorRuntimeHost::إيقاف

Stops the execution of تعليمات برمجية في the وقت التشغيل for the الحالي عملية.

أسلوب ICorRuntimeHost::SwitchInLogicalThreadState

لا تستخدم.

أسلوب ICorRuntimeHost::SwitchOutLogicalThreadState

لا تستخدم.

أسلوب ICorRuntimeHost::UnloadDomain

Unloads the specified مجال تطبيق من the الحالي عملية.

المتطلبات

الأنظمة الأساسية: See متطلبات النظام إطار عمل .NET.

**Header:**MSCorEE.idl

**المكتبة:**مُضمن كـ مورد في MSCorEE.dll

إصدارات إطار عمل.NET: 1.0, 1.1

راجع أيضًا:

المرجع

AppDomain

واجهة IAppDomainSetup

واجهة ICLRRuntimeHost

المبادئ

Hosts وقت التشغيل

موارد أخرى

استضافة (مرجع API غير مدارة)

استضافة واجهات