Share via


DeprecatedAttribute Constructors

Definition

Overloads

DeprecatedAttribute(String, DeprecationType, UInt32)

Creates and initializes a new instance of the attribute.

DeprecatedAttribute(String, DeprecationType, UInt32, String)

Creates and initializes a new instance of the attribute.

DeprecatedAttribute(String, DeprecationType, UInt32, Type)

Creates and initializes a new instance of the attribute.

DeprecatedAttribute(String, DeprecationType, UInt32, Platform)

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

DeprecatedAttribute(String, DeprecationType, UInt32)

Creates and initializes a new instance of the attribute.

public:
 DeprecatedAttribute(Platform::String ^ message, DeprecationType type, unsigned int version);
 DeprecatedAttribute(winrt::hstring const& message, DeprecationType const& type, uint32_t const& version);
public DeprecatedAttribute(string message, DeprecationType type, uint version);
function DeprecatedAttribute(message, type, version)
Public Sub New (message As String, type As DeprecationType, version As UInteger)

Parameters

message
String

Platform::String

winrt::hstring

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

type
DeprecationType

A value of the enumeration. The default is Deprecate.

version
UInt32

unsigned int

uint32_t

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

See also

Applies to

DeprecatedAttribute(String, DeprecationType, UInt32, String)

Creates and initializes a new instance of the attribute.

public:
 DeprecatedAttribute(Platform::String ^ message, DeprecationType type, unsigned int version, Platform::String ^ contract);
 DeprecatedAttribute(winrt::hstring const& message, DeprecationType const& type, uint32_t const& version, winrt::hstring const& contract);
public DeprecatedAttribute(string message, DeprecationType type, uint version, string contract);
function DeprecatedAttribute(message, type, version, contract)
Public Sub New (message As String, type As DeprecationType, version As UInteger, contract As String)

Parameters

message
String

Platform::String

winrt::hstring

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

type
DeprecationType

A value of the enumeration. The default is Deprecate.

version
UInt32

unsigned int

uint32_t

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

contract
String

Platform::String

winrt::hstring

A string representing the type of the API contract implementing the deprecated type or member.

See also

Applies to

DeprecatedAttribute(String, DeprecationType, UInt32, Type)

Creates and initializes a new instance of the attribute.

public:
 DeprecatedAttribute(Platform::String ^ message, DeprecationType type, unsigned int version, Platform::Type ^ contract);
public DeprecatedAttribute(string message, DeprecationType type, uint version, Type contract);
function DeprecatedAttribute(message, type, version, contract)
Public Sub New (message As String, type As DeprecationType, version As UInteger, contract As Type)

Parameters

message
String

Platform::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 API.

type
DeprecationType

A value of the enumeration. The default is Deprecate.

version
UInt32

unsigned int

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

contract
TypeName Type

The type of the API contract implementing the deprecated type or member.

Applies to

DeprecatedAttribute(String, DeprecationType, UInt32, Platform)

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

public:
 DeprecatedAttribute(Platform::String ^ message, DeprecationType type, unsigned int version, Platform platform);
 DeprecatedAttribute(winrt::hstring const& message, DeprecationType const& type, uint32_t const& version, Platform const& platform);
public DeprecatedAttribute(string message, DeprecationType type, uint version, Platform platform);
function DeprecatedAttribute(message, type, version, platform)
Public Sub New (message As String, type As DeprecationType, version As UInteger, platform As Platform)

Parameters

message
String

Platform::String

winrt::hstring

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

type
DeprecationType

A value of the enumeration. The default is Deprecate.

version
UInt32

unsigned int

uint32_t

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

platform
Platform

A value of the enumeration. The default is Windows.

Applies to