Επεξεργασία

Κοινή χρήση μέσω


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.

public:
 IDispatchImplAttribute(short implType);
public IDispatchImplAttribute (short implType);
new System.Runtime.InteropServices.IDispatchImplAttribute : int16 -> System.Runtime.InteropServices.IDispatchImplAttribute
Public Sub New (implType As Short)

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

IDispatchImplAttribute(IDispatchImplType)

Source:
IDispatchImplAttribute.cs

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

public:
 IDispatchImplAttribute(System::Runtime::InteropServices::IDispatchImplType implType);
public IDispatchImplAttribute (System.Runtime.InteropServices.IDispatchImplType implType);
new System.Runtime.InteropServices.IDispatchImplAttribute : System.Runtime.InteropServices.IDispatchImplType -> System.Runtime.InteropServices.IDispatchImplAttribute
Public Sub New (implType As IDispatchImplType)

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