DeprecatedAttribute DeprecatedAttribute DeprecatedAttribute DeprecatedAttribute DeprecatedAttribute Class

Definition

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.

public : sealed class DeprecatedAttribute : Attribute
struct winrt::Windows::Foundation::Metadata::DeprecatedAttribute : Attribute
public sealed class DeprecatedAttribute : Attribute
Public NotInheritable Class DeprecatedAttribute Inherits Attribute
var deprecatedAttribute = new deprecatedAttribute(message, type, version);
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.FoundationContract (introduced v1)

Constructors

DeprecatedAttribute(String, DeprecationType, UInt32) DeprecatedAttribute(String, DeprecationType, UInt32) DeprecatedAttribute(String, DeprecationType, UInt32) DeprecatedAttribute(String, DeprecationType, UInt32) DeprecatedAttribute(String, DeprecationType, UInt32)

Creates and initializes a new instance of the attribute.

DeprecatedAttribute(String, DeprecationType, UInt32, String) DeprecatedAttribute(String, DeprecationType, UInt32, String) DeprecatedAttribute(String, DeprecationType, UInt32, String) DeprecatedAttribute(String, DeprecationType, UInt32, String) DeprecatedAttribute(String, DeprecationType, UInt32, String)

Creates and initializes a new instance of the attribute.

DeprecatedAttribute(String, DeprecationType, UInt32, Platform) DeprecatedAttribute(String, DeprecationType, UInt32, Platform) DeprecatedAttribute(String, DeprecationType, UInt32, Platform) DeprecatedAttribute(String, DeprecationType, UInt32, Platform) DeprecatedAttribute(String, DeprecationType, UInt32, Platform)

Creates and initializes a new instance of the attribute, including a Platform value for targeting.

See Also