This documentation is archived and is not being maintained.

TypeLibTypeAttribute Class

Contains the TYPEFLAGS that were originally imported for this type from the COM type library.

For a list of all members of this type, see TypeLibTypeAttribute Members.

System.Object
   System.Attribute
      System.Runtime.InteropServices.TypeLibTypeAttribute

[Visual Basic]
<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Struct _
   Or AttributeTargets.Enum Or AttributeTargets.Interface)>
NotInheritable Public Class TypeLibTypeAttribute
   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct |
   AttributeTargets.Enum | AttributeTargets.Interface)]
public sealed class TypeLibTypeAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Class | AttributeTargets::Struct
   | AttributeTargets::Enum | AttributeTargets::Interface)]
public __gc __sealed class TypeLibTypeAttribute : public Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct |
   AttributeTargets.Enum | AttributeTargets.Interface)
class TypeLibTypeAttribute extends Attribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

The Type Library Importer (Tlbimp.exe) applies this attribute to classes or interfaces.

This attribute is applied when a type library is imported and should never be changed. It is only applied when the method's TYPEFLAGS evaluate to non-zero. The attribute is designed to be used by tools that need to know how the original TYPEFLAGS were set. The common language runtime does not use this attribute.

Requirements

Namespace: System.Runtime.InteropServices

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

TypeLibTypeAttribute Members | System.Runtime.InteropServices Namespace | Type Library Importer (Tlbimp.exe)

Show: