Exclude specific local variable in method from error report?

claus.netclaus.net Posts: 8 Bronze 1
edited January 13, 2015 3:27PM in SmartAssembly
Is this possible? I know about [DoNotCaptureVariables] but that excludes everything, I only want to exclude some specific variables.


  • Jessica RJessica R Posts: 1,319 Rose Gold 4
    Hi Claus,

    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?

Sign In or Register to comment.