DeprecatedAttribute(String, DeprecationType, UInt32, Platform) constructor

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

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

Syntax


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

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.

platform

Type: Platform

A value of the enumeration. The default is Windows.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.FoundationContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.FoundationContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

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)

 

 

Show:
© 2016 Microsoft