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) | |
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 type, uint32_t 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
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
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 type, uint32_t 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
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
A constant that indicates the version that the deprecation applies to.
- contract
- String
A string representing the type of the API contract implementing the deprecated type or member.
See also
- DeprecatedAttribute(String, DeprecationType, UInt32)
- DeprecatedAttribute(String, DeprecationType, UInt32, Platform)
Applies to
DeprecatedAttribute(String, DeprecationType, UInt32, Type)
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
- type
- DeprecationType
- version
- UInt32
- contract
- Type
Applies to
DeprecatedAttribute(String, DeprecationType, UInt32, Platform)
public:
DeprecatedAttribute(Platform::String ^ message, DeprecationType type, unsigned int version, Platform platform);
DeprecatedAttribute(winrt::hstring const & message, DeprecationType type, uint32_t version, Platform 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
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
A constant that indicates the version that the deprecation applies to.
- platform
- Platform
A value of the enumeration. The default is Windows.