IDispatchImplAttribute Constructors

Definition

Initializes a new instance of the IDispatchImplAttribute class.

Overloads

IDispatchImplAttribute(Int16)

Initializes a new instance of the IDispatchImplAttribute class with specified IDispatchImplType value.

IDispatchImplAttribute(IDispatchImplType)

Initializes a new instance of the IDispatchImplAttribute class with specified IDispatchImplType value.

IDispatchImplAttribute(Int16)

Source:
IDispatchImplAttribute.cs

Initializes a new instance of the IDispatchImplAttribute class with specified IDispatchImplType value.

C#
public IDispatchImplAttribute(short implType);

Parameters

implType
Int16

Indicates which IDispatchImplType enumeration will be used.

Remarks

This constructor takes an underlying 16-bit signed integer that represents each IDispatchImplType enumeration member. The Type Library Importer (TlbImp.exe) uses this constructor to avoid generating a typeref to the IDispatchImplType value that value represents, and then builds the signature with that token.

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

IDispatchImplAttribute(IDispatchImplType)

Source:
IDispatchImplAttribute.cs

Initializes a new instance of the IDispatchImplAttribute class with specified IDispatchImplType value.

C#
public IDispatchImplAttribute(System.Runtime.InteropServices.IDispatchImplType implType);

Parameters

implType
IDispatchImplType

Indicates which IDispatchImplType enumeration will be used.

Remarks

For readable code that is less prone to error, always use this constructor.

Applies to

.NET Framework 4.8.1 och andra versioner
Produkt Versioner
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1