System.Messaging Reference (Document! X Sample)
IndexOf Method (AccessControlList)



System.Messaging Namespace > AccessControlList Class : IndexOf Method
The AccessControlEntry to locate in the access control list.
Determines the specific index of an access control entry in the access control list.
Syntax
'Declaration
 
Public Function IndexOf( _
   ByVal entry As AccessControlEntry _
) As Integer
'Usage
 
Dim instance As AccessControlList
Dim entry As AccessControlEntry
Dim value As Integer
 
value = instance.IndexOf(entry)
public int IndexOf( 
   AccessControlEntry entry
)
public:
int IndexOf( 
   AccessControlEntry^ entry
) 

Parameters

entry
The AccessControlEntry to locate in the access control list.

Return Value

The index of the entry if it was found in the list; otherwise, -1
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AccessControlList Class
AccessControlList Members