DeprecatedAttribute.DeprecatedAttribute(String, DeprecationType, UInt32) constructor

Applies to Windows and Windows Phone

Creates and initializes a new instance of the attribute.

Syntax


var deprecatedAttribute = new Windows.Foundation.Metadata.DeprecatedAttribute(message, type, version);

Parameters

message

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

A string message that can be used by compilers and other developer tools to explain the deprecation and provide the string names of alternate APIs.

type

Type: DeprecationType

A value of the enumeration. The default is Deprecate.

version

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

A constant that indicates the version that the deprecation applies to.

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

DeprecatedAttribute
DeprecatedAttribute(String, DeprecationType, UInt32, Platform)

 

 

Show:
© 2014 Microsoft