Sdílet prostřednictvím


ITypeLibInfo.Enums Property

Definition

Gets the enumerations associated with the type library.

public:
 property System::Object ^ Enums { System::Object ^ get(); };
public:
 property Platform::Object ^ Enums { Platform::Object ^ get(); };
[System.Runtime.InteropServices.DispId(1610743821)]
public object Enums { [System.Runtime.InteropServices.DispId(1610743821)] get; }
[<System.Runtime.InteropServices.DispId(1610743821)>]
[<get: System.Runtime.InteropServices.DispId(1610743821)>]
member this.Enums : obj
Public ReadOnly Property Enums As Object

Property Value

An object containing a collection of enumerations associated with the type library.

Attributes

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;  
}  

Applies to