VB.NET Language in a Nutshell
| Obsolete Attribute |
Class
System.ObsoleteAttribute
Applies to
Class, Struct, Enum, Constructor, Method, Property, Field, Event, Interface, and Delegate (i.e., all program elements except parameters and return values)
Description
Indicates that the program element is obsolete and either is deprecated or no longer supported
Constructors
New([[ message ], error ])
- message (String)
-
Provides a message that can contain workarounds or alternate program elements
- error (Boolean)
-
Indicates whether the compiler generates an error if the program element is used
Properties
- IsError (Boolean)
-
Read-only. Indicates whether the compiler generates an error if the program element is used. Default value is False .
- Message (String)
-
Read-only. A message to be displayed to the programmer that indicates workarounds or alternate program elements.