Freigeben über


ClassInterfaceType Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Identifies the type of class interface that is generated for a class.

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

Syntax

'Declaration
<ComVisibleAttribute(True)> _
Public Enumeration ClassInterfaceType
[ComVisibleAttribute(true)]
public enum ClassInterfaceType

Members

Member name Description
Supported by Silverlight for Windows PhoneSupported by Xbox 360 None No class interface is generated for the class.
AutoDispatch The class supports only late binding for COM clients.
AutoDual A dual class interface is automatically generated for the class and exposed to COM.

Remarks

This enumeration is used in conjunction with the ClassInterfaceAttribute attribute.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.