ExceptionHandler.AsynchronousThreadExceptionHandler Egenskap
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Hämtar eller anger den aktuella ExceptionHandler implementeringen för programdomänen.
public:
static property System::ServiceModel::Dispatcher::ExceptionHandler ^ AsynchronousThreadExceptionHandler { System::ServiceModel::Dispatcher::ExceptionHandler ^ get(); void set(System::ServiceModel::Dispatcher::ExceptionHandler ^ value); };
public static System.ServiceModel.Dispatcher.ExceptionHandler AsynchronousThreadExceptionHandler { [System.Security.SecurityCritical] [System.Security.SecurityTreatAsSafe] get; [System.Security.SecurityCritical] [System.Security.SecurityTreatAsSafe] set; }
public static System.ServiceModel.Dispatcher.ExceptionHandler AsynchronousThreadExceptionHandler { get; set; }
[<get: System.Security.SecurityCritical>]
[<get: System.Security.SecurityTreatAsSafe>]
[<set: System.Security.SecurityCritical>]
[<set: System.Security.SecurityTreatAsSafe>]
static member AsynchronousThreadExceptionHandler : System.ServiceModel.Dispatcher.ExceptionHandler with get, set
static member AsynchronousThreadExceptionHandler : System.ServiceModel.Dispatcher.ExceptionHandler with get, set
Public Shared Property AsynchronousThreadExceptionHandler As ExceptionHandler
Egenskapsvärde
Tilldela ett anpassat ExceptionHandler objekt som tar emot ohanterade undantag som inträffar på asynkrona Windows Communication Foundation trådar (WCF).
- Attribut
Kommentarer
Som standard AsynchronousThreadExceptionHandler är nullegenskapen , och ohanterade undantag på asynkrona WCF-trådar avslutar programmet. Ställ in den här egenskapen på ett ExceptionHandler objekt som ska ta emot och reagera på dessa undantag.
Om ett ohanterat undantag inträffar på en asynkron WCF-tråd och når den här hanteraren kan tillståndet för programdomänen komprometteras.
HandleException bör inte returneras true för dessa undantag.