DeprecatedAttribute 建構函式

定義

多載

DeprecatedAttribute(String, DeprecationType, UInt32)

建立並初始化 屬性的新實例。

DeprecatedAttribute(String, DeprecationType, UInt32, String)

建立並初始化 屬性的新實例。

DeprecatedAttribute(String, DeprecationType, UInt32, Type)

建立並初始化 屬性的新實例。

DeprecatedAttribute(String, DeprecationType, UInt32, Platform)

建立並初始化 屬性的新實例,包括目標 平臺 值。

DeprecatedAttribute(String, DeprecationType, UInt32)

建立並初始化 屬性的新實例。

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)

參數

message
String

Platform::String

winrt::hstring

編譯器和其他開發人員工具可用來說明取代的字串訊息,並提供替代 API 的字串名稱。

type
DeprecationType

列舉值。 預設值為 [取代]。

version
UInt32

unsigned int

uint32_t

常數,指出淘汰所套用的版本。

另請參閱

適用於

DeprecatedAttribute(String, DeprecationType, UInt32, String)

建立並初始化 屬性的新實例。

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)

參數

message
String

Platform::String

winrt::hstring

編譯器和其他開發人員工具可用來說明取代的字串訊息,並提供替代 API 的字串名稱。

type
DeprecationType

列舉值。 預設值為 [取代]。

version
UInt32

unsigned int

uint32_t

常數,指出淘汰所套用的版本。

contract
String

Platform::String

winrt::hstring

字串,表示實作已淘汰類型或成員之 API 合約的類型。

另請參閱

適用於

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)

參數

message
String

Platform::String

編譯器和其他開發人員工具可用來說明取代的字串訊息,並提供替代 API 的字串名稱。

type
DeprecationType

列舉值。 預設值為 [取代]。

version
UInt32

unsigned int

常數,指出淘汰所套用的版本。

contract
TypeName Type

實作已淘汰型別或成員的 API 合約類型。

適用於

DeprecatedAttribute(String, DeprecationType, UInt32, Platform)

建立並初始化 屬性的新實例,包括目標 平臺 值。

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)

參數

message
String

Platform::String

winrt::hstring

編譯器和其他開發人員工具可用來說明取代的字串訊息,並提供替代 API 的字串名稱。

type
DeprecationType

列舉值。 預設值為 [取代]。

version
UInt32

unsigned int

uint32_t

常數,指出淘汰所套用的版本。

platform
Platform

列舉值。 預設值為 Windows

適用於