Share via


RuntimeHelpers.PrepareContractedDelegate(Delegate) Metoda

Definice

Upozornění

The Constrained Execution Region (CER) feature is not supported.

Poskytuje způsob, jak aplikace dynamicky připravit AppDomain delegáty událostí.

public:
 static void PrepareContractedDelegate(Delegate ^ d);
[System.Obsolete("The Constrained Execution Region (CER) feature is not supported.", DiagnosticId="SYSLIB0004", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static void PrepareContractedDelegate (Delegate d);
public static void PrepareContractedDelegate (Delegate d);
[System.Security.SecurityCritical]
public static void PrepareContractedDelegate (Delegate d);
[<System.Obsolete("The Constrained Execution Region (CER) feature is not supported.", DiagnosticId="SYSLIB0004", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member PrepareContractedDelegate : Delegate -> unit
static member PrepareContractedDelegate : Delegate -> unit
[<System.Security.SecurityCritical>]
static member PrepareContractedDelegate : Delegate -> unit
Public Shared Sub PrepareContractedDelegate (d As Delegate)

Parametry

d
Delegate

Delegát události, který se má připravit.

Atributy

Poznámky

AppDomain Delegáti událostí, jako DomainUnloadjsou , ProcessExita UnhandledException , se při spuštění automaticky nepřipravují. K jejich přípravě můžete použít následující metody:

Další informace najdete v článku Udržování kódu v provozu pomocí funkcí spolehlivosti rozhraní .NET Framework v časopisu MSDN Magazine.

Platí pro