DeprecatedAttribute Конструкторы

Определение

Перегрузки

DeprecatedAttribute(String, DeprecationType, UInt32)

Создает и инициализирует новый экземпляр атрибута .

DeprecatedAttribute(String, DeprecationType, UInt32, String)

Создает и инициализирует новый экземпляр атрибута .

DeprecatedAttribute(String, DeprecationType, UInt32, Type)

Создает и инициализирует новый экземпляр атрибута .

DeprecatedAttribute(String, DeprecationType, UInt32, Platform)

Создает и инициализирует новый экземпляр атрибута , включая значение 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)

Создает и инициализирует новый экземпляр атрибута , включая значение 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.

Применяется к