واجهة 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 |
الوصف |
---|---|
Resets a مجال العداد الخلف إلى the beginning of the مجال قائمة. |
|
قم بإنشاء في مجال تطبيق. The caller receives an واجهة مؤشر of نوع _AppDomain إلى an مثيل of نوع System.AppDomain. |
|
قم بإنشاء في مجال تطبيق. يسمح هذا الأسلوب للطالب إلى تمرير مثيل IAppDomainSetup إلى تكوين الميزات الإضافية التي تم إرجاعها _AppDomainالمثيل. |
|
Gets an واجهة مؤشر of نوع IAppDomainSetup إلى an AppDomainSetup مثيل. IAppDomainSetup provides وظائف إلى تكوين aspects of an مجال تطبيق قبل it هو تاريخ الإنشاء. |
|
Gets an واجهة مؤشر of نوع IIdentity, which allows the مضيف إلى إنشاء الأمان دليل إلى pass إلى CreateDomain أو CreateDomainEx. |
|
لا تستخدم. |
|
Gets an واجهة pointer of نوع _AppDomain that represents the مجال تم تحميله تشغيل the الحالي مؤشر ترابط. |
|
لا تستخدم. |
|
Gets an العداد for the domains في the الحالي عملية. |
|
Gets an كائن that allows the مضيف إلى specify the callback تكوين of the CLR. |
|
Gets an واجهة مؤشر of نوع _AppDomain that represents the الافتراضي مجال for the الحالي عملية. |
|
لا تستخدم. |
|
خرائط the specified ملف في ذاكرة. هذا الأسلوب مهمل. |
|
Gets an واجهة مؤشر إلى the التالي مجال في the قائمة تعداد. |
|
Starts the CLR. |
|
Stops the execution of تعليمات برمجية في the وقت التشغيل for the الحالي عملية. |
|
لا تستخدم. |
|
لا تستخدم. |
|
Unloads the specified مجال تطبيق من the الحالي عملية. |
المتطلبات
الأنظمة الأساسية: See متطلبات النظام إطار عمل .NET.
**Header:**MSCorEE.idl
**المكتبة:**مُضمن كـ مورد في MSCorEE.dll
إصدارات إطار عمل.NET: 1.0, 1.1