Udostępnij za pośrednictwem


ActivatableAttribute Constructors

Definition

Overloads

ActivatableAttribute(UInt32)

Indicates that the runtime class can be activated with no parameters, starting in a particular version.

ActivatableAttribute(Type, UInt32)

Indicates that the runtime class can be activated with parameters, starting in a particular version.

ActivatableAttribute(UInt32, String)

Indicates that the runtime class can be activated with no parameters, starting in a particular version of a particular API contract.

ActivatableAttribute(UInt32, Type)

Indicates that the runtime class can be activated with parameters, starting in a particular version.

ActivatableAttribute(UInt32, Platform)

Indicates that the runtime class can be activated with no parameters, starting in a particular version of a particular platform.

ActivatableAttribute(Type, UInt32, String)

Indicates that the runtime class can be activated with parameters, starting in a particular version of a particular API contract.

ActivatableAttribute(Type, UInt32, Type)

Indicates that the runtime class can be activated with parameters, starting in a particular version of a particular API contract.

ActivatableAttribute(Type, UInt32, Platform)

Indicates that the runtime class can be activated with parameters, starting in a particular version of a particular platform.

ActivatableAttribute(UInt32)

Indicates that the runtime class can be activated with no parameters, starting in a particular version.

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

Parameters

version
UInt32

unsigned int

uint32_t

The minimum version that can activate the runtime class with no parameters.

Remarks

Developers can choose any versioning system they wish, provided the version number always increases. For more details, see Versioning in the Microsoft cross-language type system specification.

Activation with no parameters is performed by the RoActivateInstance function.

See also

Applies to

ActivatableAttribute(Type, UInt32)

Indicates that the runtime class can be activated with parameters, starting in a particular version.

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)

Parameters

type
TypeName Type

The type of the interface that is used to activate objects.

version
UInt32

unsigned int

The minimum version that can activate the runtime class with the specified interface.

Remarks

Developers can choose any versioning system they wish, provided the version number always increases. For more details, see Versioning in the Microsoft cross-language type system specification.

See also

Applies to

ActivatableAttribute(UInt32, String)

Indicates that the runtime class can be activated with no parameters, starting in a particular version of a particular API contract.

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)

Parameters

version
UInt32

unsigned int

uint32_t

The version of the API contract that can activate the runtime class with no parameters. The major version is in the high-order 16-bits and the minor version is in the low-order 16 bits.

type
String

Platform::String

winrt::hstring

The name of the API contract that can activate the runtime class with no parameters. (This parameter should have been named contractName.)

Remarks

Activation with no parameters is performed by the RoActivateInstance function.

See also

Applies to

ActivatableAttribute(UInt32, Type)

Indicates that the runtime class can be activated with parameters, starting in a particular version.

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)

Parameters

version
UInt32

unsigned int

The minimum version that can activate the runtime class with the specified interface.

type
TypeName Type

The type of the interface that is used to activate objects.

Remarks

Developers can choose any versioning system they wish, provided the version number always increases. For more details, see Versioning in the Microsoft cross-language type system specification.

See also

Applies to

ActivatableAttribute(UInt32, Platform)

Indicates that the runtime class can be activated with no parameters, starting in a particular version of a particular 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)

Parameters

version
UInt32

unsigned int

uint32_t

The minimum version of the platform that can activate the runtime class with no parameters.

platform
Platform

The platform that can activate the runtime class with no parameters.

Remarks

This version of the ActivatableAttribute constructor is obsolete.

Activation with no parameters is performed by the RoActivateInstance function.

See also

Applies to

ActivatableAttribute(Type, UInt32, String)

Indicates that the runtime class can be activated with parameters, starting in a particular version of a particular API contract.

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)

Parameters

type
TypeName Type

The type of the interface that is used to activate objects.

version
UInt32

unsigned int

The minimum version of the API contract that can activate the runtime class with the specified interface. The major version is in the high-order 16-bits and the minor version is in the low-order 16 bits.

contractName
String

Platform::String

The name of the API contract that can activate the runtime class with the specified interface.

See also

Applies to

ActivatableAttribute(Type, UInt32, Type)

Indicates that the runtime class can be activated with parameters, starting in a particular version of a particular API contract.

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)

Parameters

type
TypeName Type

The type of the interface that is used to activate objects.

version
UInt32

unsigned int

The minimum version that can activate the runtime class with the specified interface.

contractName
TypeName Type

The type of the API contract that can activate the runtime class with no parameters.

Examples

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

Applies to

ActivatableAttribute(Type, UInt32, Platform)

Indicates that the runtime class can be activated with parameters, starting in a particular version of a particular 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)

Parameters

type
TypeName Type

The type of the interface that is used to activate objects.

version
UInt32

unsigned int

The version of the platform that can activate the runtime class with the specified interface.

platform
Platform

The platform that can activate the runtime class with the specified interface.

Remarks

This version of the ActivatableAttribute constructor is obsolete.

See also

Applies to