Link to home
Start Free TrialLog in
Avatar of atomicgs12
atomicgs12Flag for United States of America

asked on

Visual basic DebuggerNonUserCodeAttribute, how and why is it used.

what does the statement System.Diagnostics.DebuggerNonUserCodeAttribute(), _
         System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Delete, False) do before a function?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Todd Gerbert
Todd Gerbert
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of atomicgs12

ASKER

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
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.