واجهة ICLRPolicyManager
Provides وظائف that allow the مضيف إلى specify سياسة الاجراءات إلى be taken في the حدث of failures و timeouts.
interface ICLRPolicyManager: IUnknown {
HRESULT SetActionOnFailure (
[in] EClrFailure failure,
[in] EPolicyAction action
);
HRESULT SetActionOnTimeout (
[in] EClrOperation operation,
[in] EPolicyAction action
);
HRESULT SetDefaultAction (
[in] EClrOperation operation,
[in] EPolicyAction action);
HRESULT SetTimeout (
[in] EClrOperation operation,
[in] DWORD dwMilliseconds
);
HRESULT SetTimeoutAndAction (
[in] EClrOperation operation,
[in] DWORD dwMilliseconds,
[in] EPolicyAction action
);
HRESULT SetUnhandledExceptionPolicy (
[in] EClrUnhandledException policy
);
}
الأساليب
Method |
الوصف |
---|---|
Specifies the سياسة إجراء the وقت تشغيل اللغة العامة (CLR) should take when the specified فشل occurs. |
|
Specifies the سياسة إجراء the CLR should take when the specified تشغيل مرة/مرات خارج. |
|
Specifies the سياسة إجراء the CLR should take when the specified تشغيل occurs. |
|
قم بتعيين القيمة مهلة للعملية المحددة. |
|
قم بتعيين القيمة مهلة للعملية المحددة، وتحديد الإجراء نهج CLR الذي يجب أن يحدث عند إجراء تشغيل. |
|
تعيين سلوك CLR عند حدوث استثناء غير معالج. |
المتطلبات
الأنظمة الأساسية: See متطلبات النظام إطار عمل .NET.
**Header:**MSCorEE.idl
**المكتبة:**مُضمن كـ مورد في MSCorEE.dll
.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0