Dela via


ITypeLibInfo.Enums Property

Gets the enumerations associated with the type library.

Namespace:  Microsoft.VisualStudio.VsWizard
Assembly:  Microsoft.VisualStudio.VsWizard (in Microsoft.VisualStudio.VsWizard.dll)

Syntax

'Declaration
ReadOnly Property Enums As Object
    Get
Object Enums { get; }
property Object^ Enums {
    Object^ get ();
}
abstract Enums : Object
function get Enums () : Object

Property Value

Type: System.Object
An object containing a collection of enumerations associated with the type library.

Examples

// From the Visual C++ Member Variable wizard.
function GenerateActiveXControlClassEnums(oTypeLib)
{
   var nCount = oTypeLib.Enums.Count;
   var strEnumText = "";

   for (i = 1; i <=  nCount; i++)
   {
      var oEnum = oTypeLib.Enums.item(i);
      strEnumText += oEnum.Body;
   }
   return strEnumText;
}

.NET Framework Security

See Also

Reference

ITypeLibInfo Interface

Microsoft.VisualStudio.VsWizard Namespace