Share via


ActivatableAttribute 建構函式

定義

多載

ActivatableAttribute(UInt32)

指出執行時間類別可以在沒有參數時啟動,從特定版本開始。

ActivatableAttribute(Type, UInt32)

指出執行時間類別可以使用參數啟動,從特定版本開始。

ActivatableAttribute(UInt32, String)

指出執行時間類別可以在沒有參數時啟動,從特定 API 合約的特定版本開始。

ActivatableAttribute(UInt32, Type)

指出執行時間類別可以使用參數啟動,從特定版本開始。

ActivatableAttribute(UInt32, Platform)

指出執行時間類別可以在沒有參數時啟動,從特定平臺的特定版本開始。

ActivatableAttribute(Type, UInt32, String)

表示可以使用參數啟動執行時間類別,從特定版本的特定 API 合約開始。

ActivatableAttribute(Type, UInt32, Type)

表示可以使用參數啟動執行時間類別,從特定版本的特定 API 合約開始。

ActivatableAttribute(Type, UInt32, Platform)

指出執行時間類別可以使用參數啟動,從特定平臺的特定版本開始。

ActivatableAttribute(UInt32)

指出執行時間類別可以在沒有參數時啟動,從特定版本開始。

public:
 ActivatableAttribute(unsigned int version);
 ActivatableAttribute(uint32_t const& version);
public ActivatableAttribute(uint version);
function ActivatableAttribute(version)
Public Sub New (version As UInteger)

參數

version
UInt32

unsigned int

uint32_t

可啟用不含參數之執行時間類別的最低版本。

備註

開發人員可以選擇他們想要的任何版本控制系統,前提是版本號碼一律增加。 如需詳細資訊,請參閱 Microsoft 跨語言類型系統規格的版本 設定

沒有參數的啟用是由 RoActivateInstance 函式執行。

另請參閱

適用於

ActivatableAttribute(Type, UInt32)

指出執行時間類別可以使用參數啟動,從特定版本開始。

public:
 ActivatableAttribute(Platform::Type ^ type, unsigned int version);
public ActivatableAttribute(Type type, uint version);
function ActivatableAttribute(type, version)
Public Sub New (type As Type, version As UInteger)

參數

type
TypeName Type

用來啟始物件的介面類別型。

version
UInt32

unsigned int

可以使用指定的介面啟動執行時間類別的最低版本。

備註

開發人員可以選擇他們想要的任何版本控制系統,前提是版本號碼一律增加。 如需詳細資訊,請參閱 Microsoft 跨語言類型系統規格的版本 設定

另請參閱

適用於

ActivatableAttribute(UInt32, String)

指出執行時間類別可以在沒有參數時啟動,從特定 API 合約的特定版本開始。

public:
 ActivatableAttribute(unsigned int version, Platform::String ^ type);
 ActivatableAttribute(uint32_t const& version, winrt::hstring const& type);
public ActivatableAttribute(uint version, string type);
function ActivatableAttribute(version, type)
Public Sub New (version As UInteger, type As String)

參數

version
UInt32

unsigned int

uint32_t

可啟用不含參數之執行時間類別的 API 合約版本。 主要版本處於高階 16 位,次要版本處於低序 16 位。

type
String

Platform::String

winrt::hstring

可啟用不含參數之執行時間類別的 API 合約名稱。 (此參數應該已命名為 contractName .)

備註

沒有參數的啟用是由 RoActivateInstance 函式執行。

另請參閱

適用於

ActivatableAttribute(UInt32, Type)

指出執行時間類別可以使用參數啟動,從特定版本開始。

public:
 ActivatableAttribute(unsigned int version, Platform::Type ^ type);
public ActivatableAttribute(uint version, Type type);
function ActivatableAttribute(version, type)
Public Sub New (version As UInteger, type As Type)

參數

version
UInt32

unsigned int

可以使用指定的介面啟動執行時間類別的最低版本。

type
TypeName Type

用來啟始物件的介面類別型。

備註

開發人員可以選擇他們想要的任何版本控制系統,前提是版本號碼一律增加。 如需詳細資訊,請參閱 Microsoft 跨語言類型系統規格的版本 設定

另請參閱

適用於

ActivatableAttribute(UInt32, Platform)

指出執行時間類別可以在沒有參數時啟動,從特定平臺的特定版本開始。

public:
 ActivatableAttribute(unsigned int version, Platform platform);
 ActivatableAttribute(uint32_t const& version, Platform const& platform);
public ActivatableAttribute(uint version, Platform platform);
function ActivatableAttribute(version, platform)
Public Sub New (version As UInteger, platform As Platform)

參數

version
UInt32

unsigned int

uint32_t

可啟用不含參數之執行時間類別之平臺的最低版本。

platform
Platform

可啟動不含參數之執行時間類別的平臺。

備註

這個版本的建 ActivatableAttribute 構函式已經過時。

沒有參數的啟用是由 RoActivateInstance 函式執行。

另請參閱

適用於

ActivatableAttribute(Type, UInt32, String)

表示可以使用參數啟動執行時間類別,從特定版本的特定 API 合約開始。

public:
 ActivatableAttribute(Platform::Type ^ type, unsigned int version, Platform::String ^ contractName);
public ActivatableAttribute(Type type, uint version, string contractName);
function ActivatableAttribute(type, version, contractName)
Public Sub New (type As Type, version As UInteger, contractName As String)

參數

type
TypeName Type

用來啟始物件的介面類別型。

version
UInt32

unsigned int

可使用指定介面啟動執行時間類別的 API 合約最低版本。 主要版本處於高階 16 位,次要版本處於低序 16 位。

contractName
String

Platform::String

可使用指定介面啟動執行時間類別的 API 合約名稱。

另請參閱

適用於

ActivatableAttribute(Type, UInt32, Type)

表示可以使用參數啟動執行時間類別,從特定版本的特定 API 合約開始。

public:
 ActivatableAttribute(Platform::Type ^ type, unsigned int version, Platform::Type ^ contractName);
public ActivatableAttribute(Type type, uint version, Type contractName);
function ActivatableAttribute(type, version, contractName)
Public Sub New (type As Type, version As UInteger, contractName As Type)

參數

type
TypeName Type

用來啟始物件的介面類別型。

version
UInt32

unsigned int

可以使用指定的介面啟動執行時間類別的最低版本。

contractName
TypeName Type

可啟動不含參數之執行時間類別的 API 合約類型。

範例

ActivatableAttribute (Type, UInt32, Platform) ActivatableAttribute (Type, UInt32) ActivatableAttribute (UInt32) 、ActivatableAttribute (UInt32、Type、ActivatableAttribute (UInt32、Platform) ActivatableAttribute (Type、UInt32、String) ActivatableAttribute (UInt32、String)

適用於

ActivatableAttribute(Type, UInt32, Platform)

指出執行時間類別可以使用參數啟動,從特定平臺的特定版本開始。

public:
 ActivatableAttribute(Platform::Type ^ type, unsigned int version, Platform platform);
public ActivatableAttribute(Type type, uint version, Platform platform);
function ActivatableAttribute(type, version, platform)
Public Sub New (type As Type, version As UInteger, platform As Platform)

參數

type
TypeName Type

用來啟始物件的介面類別型。

version
UInt32

unsigned int

可使用指定介面啟動執行時間類別的平臺版本。

platform
Platform

可使用指定介面啟動執行時間類別的平臺。

備註

這個版本的建 ActivatableAttribute 構函式已經過時。

另請參閱

適用於