InterfaceTypeAttribute Constructor (Int16)

 

Initializes a new instance of the InterfaceTypeAttribute class with the specified ComInterfaceType enumeration member.

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

public:
InterfaceTypeAttribute(
	short interfaceType
)

Parameters

interfaceType
Type: System::Int16

Describes how the interface should be exposed to COM clients.

This constructor takes an underlying 16-bit integer that represents each ComInterfaceType enumeration member. The Tlbimp.exe (Type Library Importer) uses this constructor.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: