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
Object Enums { get; }
property Object^ Enums {
Object^ get ();
}
abstract Enums : Object with get
function get Enums () : Object
Property Value
Type: 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.