DeprecatedAttribute
DeprecatedAttribute
DeprecatedAttribute
DeprecatedAttribute
Class
Definition
Indicates that a type or member should be marked in metadata as deprecated. Compilers and other developer tools can read this attribute and provide info to the user about the deprecation type and possible alternates.
public : sealed class DeprecatedAttribute : Attributepublic sealed class DeprecatedAttribute : AttributePublic NotInheritable Class DeprecatedAttribute Inherits Attribute// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.FoundationContract (introduced v1)
|
Constructors
DeprecatedAttribute(String, DeprecationType, UInt32) DeprecatedAttribute(String, DeprecationType, UInt32) DeprecatedAttribute(String, DeprecationType, UInt32) DeprecatedAttribute(String, DeprecationType, UInt32)
Creates and initializes a new instance of the attribute.
public : DeprecatedAttribute(PlatForm::String message, DeprecationType type, unsigned int version)public DeprecatedAttribute(String message, DeprecationType type, UInt32 version)Public Sub New(message As String, type As DeprecationType, version As UInt32)// You can use this method in JavaScript.
- message
- PlatForm::String String String 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.
A value of the enumeration. The default is Deprecate.
- version
- unsigned int UInt32 UInt32 UInt32
A constant that indicates the version that the deprecation applies to.
- See Also
DeprecatedAttribute(String, DeprecationType, UInt32, String) DeprecatedAttribute(String, DeprecationType, UInt32, String) DeprecatedAttribute(String, DeprecationType, UInt32, String) 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)public DeprecatedAttribute(String message, DeprecationType type, UInt32 version, String contract)Public Sub New(message As String, type As DeprecationType, version As UInt32, contract As String)// You can use this method in JavaScript.
- message
- PlatForm::String String String 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.
A value of the enumeration. The default is Deprecate.
- version
- unsigned int UInt32 UInt32 UInt32
A constant that indicates the version that the deprecation applies to.
- contract
- PlatForm::String String String String
A string representing the type of the API contract implementing the deprecated type or member.
DeprecatedAttribute(String, DeprecationType, UInt32, Platform) DeprecatedAttribute(String, DeprecationType, UInt32, Platform) DeprecatedAttribute(String, DeprecationType, UInt32, Platform) 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)public DeprecatedAttribute(String message, DeprecationType type, UInt32 version, Platform platform)Public Sub New(message As String, type As DeprecationType, version As UInt32, platform As Platform)// You can use this method in JavaScript.
- message
- PlatForm::String String String 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.
A value of the enumeration. The default is Deprecate.
- version
- unsigned int UInt32 UInt32 UInt32
A constant that indicates the version that the deprecation applies to.
- See Also