Item Property (Int32)
Gets a ProfilePropertyAttribute from the current collection, based upon the specified index.
Namespace: Microsoft.CommerceServer.Runtime.Profiles
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public ReadOnly Property Item ( _
index As Integer _
) As ProfilePropertyAttribute
'Usage
Dim instance As ProfilePropertyAttributeCollection
Dim index As Integer
Dim value As ProfilePropertyAttribute
value = instance.Item(index)
public ProfilePropertyAttribute Item[
int index
] { get; }
public:
property ProfilePropertyAttribute^ Item[int index] {
ProfilePropertyAttribute^ get (int index);
}
JScript does not support indexed properties.
Parameters
- index
Type: System..::.Int32
The zero-based index of the ProfilePropertyAttribute to retrieve.
Property Value
Type: Microsoft.CommerceServer.Runtime.Profiles..::.ProfilePropertyAttribute
The ProfilePropertyAttribute from the collection based on the index.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | index is outside the range of the ProfilePropertyAttribute objects. |
Remarks
Retrieves a ProfilePropertyAttribute from the current collection with the specified index.
Permissions
- 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.
See Also
Reference
ProfilePropertyAttributeCollection Class