ObsoleteAttribute Constructor (String, Boolean)
Collapse the table of content
Expand the table of content

ObsoleteAttribute Constructor (String, Boolean)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the ObsoleteAttribute class with a workaround message and a Boolean value indicating whether the obsolete element usage is considered an error.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Sub New ( _
	message As String, _
	error As Boolean _
)

Parameters

message
Type: System.String
The text string that describes alternative workarounds.
error
Type: System.Boolean
The Boolean value that indicates whether the obsolete element usage is considered an error.

The following table shows the initial property values for an instance of ObsoleteAttribute.

Property

Value

IsError

The error value.

Message

The workaround message.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft