DeprecatedAttribute attribute

Applies to Windows and Windows Phone

Indicates that a type or member should be marked in metadata as deprecated. Compilers and other developer tools can read this attribute and provide info to the user about the deprecation type and possible alternates.

Syntax


var deprecatedAttribute = new Windows.Foundation.Metadata.DeprecatedAttribute(string, deprecationType, uInt32);
var deprecatedAttribute = new Windows.Foundation.Metadata.DeprecatedAttribute(string, deprecationType, uInt32, platform);

Attributes

[AllowMultiple()]
[AttributeUsage(1887)]
[Version(0x6030000)]

Members

The DeprecatedAttribute attribute has these types of members:

Constructors

The DeprecatedAttribute attribute has these constructors.

ConstructorDescription
DeprecatedAttribute(String, DeprecationType, UInt32) Creates and initializes a new instance of the attribute.
DeprecatedAttribute(String, DeprecationType, UInt32, Platform) Creates and initializes a new instance of the attribute, including a Platform value for targeting.

 

Methods

The DeprecatedAttribute attribute inherits methods from the Object class (C#/VB/C++).

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Foundation.Metadata
Windows::Foundation::Metadata [C++]

Metadata

Windows.winmd

See also

Attribute

 

 

Show:
© 2014 Microsoft