DeprecatedAttribute Constructor (String, DeprecationType, UInt32)

Creates and initializes a new instance of the attribute.

Syntax

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

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.

Requirements

Namespace: Windows.Foundation.Metadata

Metadata: windows.winmd

See also

Reference

DeprecatedAttribute Class

DeprecatedAttribute Members

Windows.Foundation.Metadata Namespace