Creates and initializes a new instance of the attribute, including a Platform value for targeting.
public:
DeprecatedAttribute(
String^ message,
DeprecationType type,
uint32 version,
Platform platform
)
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.
Namespace: Windows.Foundation.Metadata
Metadata: windows.winmd