RuntimeHelpers.PrepareContractedDelegate(Delegate) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
주의
The Constrained Execution Region (CER) feature is not supported.", DiagnosticId="SYSLIB0004", UrlFormat="https://aka.ms/dotnet-warnings/{0}
애플리케이션이 AppDomain 이벤트 대리자를 동적으로 준비하는 방법을 제공합니다.
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)
매개 변수
- d
- Delegate
준비할 이벤트 대리자입니다.
- 특성
설명
AppDomain , 및 와 같은 이벤트 DomainUnload ProcessExit UnhandledException 대리자는 시작 시 자동으로 준비되지 않습니다. 다음 메서드를 사용하여 준비할 수 있습니다.
특성을 사용하여 메서드를 PrePrepareMethodAttribute 특성화합니다.
특성을 사용하여 메서드를 ReliabilityContractAttribute 특성화합니다.
PrepareContractedDelegate메서드를 호출하여 대리자를 동적으로 준비합니다.
자세한 내용은 MSDN Magazine의 .NET Framework 안정성 기능을 통해 코드 실행 유지 문서를 참조하세요.