IDispatchImplAttribute Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the IDispatchImplAttribute
class.
IDispatchImplAttribute(Int16) |
Initializes a new instance of the |
IDispatchImplAttribute(IDispatchImplType) |
Initializes a new instance of the |
- 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
.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 |
- 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
.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 |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: