We help IT Professionals succeed at work.

Visual basic DebuggerNonUserCodeAttribute, how and why is it used.

Medium Priority
527 Views
Last Modified: 2012-05-11
what does the statement System.Diagnostics.DebuggerNonUserCodeAttribute(), _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, False) do before a function?

Thanks
Comment
Watch Question

Senior Engineer
CERTIFIED EXPERT
Top Expert 2010
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Makes sense. So how does a function like:
<System.Diagnostics.DebuggerNonUserCodeAttribute(),_ System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, False)> _
        Public Overridable Overloads Function DeleteOlderThan(ByVal CutOff As System.Nullable(Of Date)) As Integer
get autogenerated? What tool might be used? Of course this is related to a database.
Thanks
Todd GerbertSenior Engineer
CERTIFIED EXPERT
Top Expert 2010

Commented:
Probably the result of adding an Entity Framework object.  Normally you wouldn't mess the the .vb files though - like when you want to add a button to a form you don't edit the Form1.Designer.vb file by hand, you use the designer to drag a button from the toolbox onto your form.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.