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

声明
ReadOnly Property Enums As Object
用法
Dim instance As ITypeLibInfo
Dim value As Object

value = instance.Enums
Object Enums { get; }
property Object^ Enums {
    Object^ get ();
}
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;
}

Permissions

See Also

Reference

ITypeLibInfo Interface

ITypeLibInfo Members

Microsoft.VisualStudio.VsWizard Namespace