Share via


SecurityElementCollection.Item Property

Gets the item at the specified index in the collection.

Namespace: Microsoft.Web.Services2.Security
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim securityElementCollection1 As SecurityElementCollection

Dim key As Integer
Dim returnValue As ISecurityElement
returnValue = securityElementCollection1.Item(key)

Syntax

'Declaration
Public ReadOnly Property Item( _
    ByVal index As Integer _
) As ISecurityElement
public ISecurityElement this[
    int index
] {get;}
public: property ISecurityElement^ Item{
    ISecurityElement^ get();
}
public ISecurityElement get_Item(
    int index
);
In JScript, you can use Indexed Properties defined by a class, but you cannot define your own.

Parameters

  • index
    The zero-based index of the item to retrieve.

Property Value

An ISecurityElement at the specified index of the collection.

Exceptions

Exception type Condition
System.ArgumentOutOfRangeException

index is less than 0.

-or-

index is greater than or equal to the total number of items in the collection.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

SecurityElementCollection Class
Microsoft.Web.Services2.Security Namespace

Other Resources

SecurityElementCollection Members