Exclude specific local variable in method from error report?
claus.net
Posts: 8 Bronze 1
Is this possible? I know about [DoNotCaptureVariables] but that excludes everything, I only want to exclude some specific variables.
Comments
I'm afraid not.
You can exclude member variables of a class using the [DoNotCapture] attribute, but .NET doesn't allow attributes to be applied to local variables.
Please let me know if you have any other questions!
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?