DeprecatedAttribute Constructor (String, DeprecationType, UInt32, Platform)

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

Syntax

public:
DeprecatedAttribute(
         String^ message,
         DeprecationType type,
         uint32 version,
         Platform platform
)  

Parameters

message
Type: String 

 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 

Indicates whether the entity should be treated as deprecated or removed.

version
Type: uint32 

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

platform
Type: Platform 

Specifies the platforms that a specified type should be supported in.

Requirements

Namespace: Windows.Foundation.Metadata

Metadata: windows.winmd

See also

Reference

DeprecatedAttribute Class

DeprecatedAttribute Members

Windows.Foundation.Metadata Namespace