Name
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.
Get VB.NET Language in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.