In VB.NET, can I mark a function as deprecated?

There are attributes in VB.NET too:

  • https://msdn.microsoft.com/en-us/library/system.obsoleteattribute(v=vs.110).aspx
  • http://www.vb-helper.com/howto_net_obsolete_attribute.html

Looks like this (before your function)

<Obsolete("This method is deprecated, use XXXX instead.")> _ 

And since VB.NET 10 (.NET 4 and later) we no longer need the underscore.

<Obsolete("This method is deprecated, use XXXX instead.")>

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)