---
UID: NF:azroles.IAzRoles.get__NewEnum
title: IAzRoles::get__NewEnum (azroles.h)
description: The _NewEnum property of IAzRoles retrieves an IEnumVARIANT interface on an object that can be used to enumerate the collection. This property is hidden within Visual Basic and Visual Basic Scripting Edition (VBScript).
old-location: security\iazroles_newenum.htm
tech.root: SecAuthZ
ms.assetid: 46388cf1-6ad8-4320-a0cd-998216b0043c
ms.date: 12/05/2018
ms.keywords: AzRoles object [Security],_NewEnum property, IAzRoles interface [Security],_NewEnum property, IAzRoles._NewEnum, IAzRoles.get__NewEnum, IAzRoles::_NewEnum, IAzRoles::get__NewEnum, _NewEnum property [Security], _NewEnum property [Security],AzRoles object, _NewEnum property [Security],IAzRoles interface, azroles/IAzRoles::_NewEnum, azroles/IAzRoles::get__NewEnum, get__NewEnum, security.iazroles_newenum
f1_keywords:
- azroles/IAzRoles._NewEnum
dev_langs:
- c++
req.header: azroles.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: Windows Vista [desktop apps only]
req.target-min-winversvr: Windows Server 2003 [desktop apps only]
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: Azroles.lib
req.dll: Azroles.dll
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- Azroles.dll
api_name:
- IAzRoles._NewEnum
- IAzRoles.get__NewEnum
- AzRoles._NewEnum
targetos: Windows
req.typenames: 
req.redist: Windows Server 2003 Administration Tools Pack on Windows XP
ms.custom: 19H1
---

# IAzRoles::get__NewEnum


## -description


The <b>_NewEnum</b> property retrieves an <a href="https://docs.microsoft.com/previous-versions/windows/desktop/api/oaidl/nn-oaidl-ienumvariant">IEnumVARIANT</a> interface on an object that can be used to enumerate the collection. This property is hidden within Visual Basic and Visual Basic Scripting Edition (VBScript).

This property is read-only.


## -parameters


## -remarks



This property is provided for use by the <code>For Each</code> keyword in Visual Basic and the <code>foreach</code> keyword in Visual C#.



