Du kannst natürlich den inneren Teil in eine Methode bringen, und
diese dann 10x aufrufen:
static void HandleOrRethrowEx(Exception ex)
{
bool rethrow = ExceptionPolicy.HandleException(ex, "Log Only
Policy"); if (rethrow)
{
throw;
}
}
Nein. Das funktioniert nicht.
Ein "Rethrow" (in c# einfach 'throw' ohne weiteres Argument) ist nur
möglich, wenn eine Exception gefangen wird (was in der Methode nicht der
Fall ist). IIRC wird der Kompiler hier auch einen Fehler.
Maximal ein "throw ex" wäre möglich, hat dann aber eine andere Semantik.
Re: Client Firewall and Outlook ... Have you ran rsop.msc ("Resultant Set of Policy") on any of the client ...Outlook to the exception list via GP does not add Outlook to the exceptions ... list in the Windows Firewall interface BUT DOES have the desired effect on ... (microsoft.public.windows.server.sbs)
Re: Virus scanner *solely* for e-mail? ... I was using F-Prot for DOS as a ... weekly verification of what the resident on access scanner was doing. ... which described how to call F-Prot for DOS as a Mercury Mail AV Policy.... > Subject: Policy Exception Advice... (microsoft.public.security.virus)
Re: After XP SP2, Outlook 98 Problem ...Outlook 2003 allows one to specific a fixed UDP ...port for new mail ... >When you set the exception for the program outlook.exe, ... >> We had the Windows Firewall enabled (via Group Policy) ... (microsoft.public.outlook)
Re: UserName and Kerberos tokens at the same time ... I get the following exception... But when I run my test project which is using a custom policy I get the ... I can see that the Kerberos is beeing generated and assigned to the proxy. ... > Subject: Re: UserName and Kerberos tokens at the same time ... (microsoft.public.dotnet.framework.webservices.enhancements)
Re: how can I run .net logon script application ... you mentioned that there was a different exception thrown if the ... this must be done on the client since the policy is stored locally. ... >> for some distribution options.... (microsoft.public.dotnet.security)