Obsolete Attribute

   
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.

   


VB.Net Language in a Nutshell
VB.NET Language in a Nutshell
ISBN: B00006L54Q
EAN: N/A
Year: 2002
Pages: 503

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net