Sdílet prostřednictvím


StaticAttribute Constructors

Definition

Overloads

StaticAttribute(Type, UInt32)

Creates and initializes a new instance of the attribute.

StaticAttribute(Type, UInt32, String)

Creates and initializes a new instance of the attribute.

StaticAttribute(Type, UInt32, Type)

Creates and initializes a new instance of the attribute.

StaticAttribute(Type, UInt32, Platform)

Creates and initializes a new instance of the attribute.

StaticAttribute(Type, UInt32)

Creates and initializes a new instance of the attribute.

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

Parameters

type
TypeName Type

The type that contains the static methods for the runtime class.

version
UInt32

unsigned int

The version in which the static interface was added.

See also

Applies to

StaticAttribute(Type, UInt32, String)

Creates and initializes a new instance of the attribute.

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

Parameters

type
TypeName Type

The type that contains the static methods for the runtime class.

version
UInt32

unsigned int

The version of the API Contract in which the static factory was added to the runtime class's activation factory.

contractName
String

Platform::String

A string representing the type of the API contract implementing the class.

See also

Applies to

StaticAttribute(Type, UInt32, Type)

Creates and initializes a new instance of the attribute.

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

Parameters

type
TypeName Type

The type that contains the static methods for the runtime class.

version
UInt32

unsigned int

The version of the API Contract in which the static factory was added to the runtime class's activation factory.

contractName
TypeName Type

The type of the API contract implementing the class.

See also

Applies to

StaticAttribute(Type, UInt32, Platform)

Creates and initializes a new instance of the attribute.

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

Parameters

type
TypeName Type

The type that contains the static methods for the runtime class.

version
UInt32

unsigned int

The version in which the static interface was added.

platform
Platform

A value of the enumeration. The default is Windows.

See also

Applies to