Share via


FilterParameterCollection.Item Property

Gets or sets a filter parameter in the collection at the specified index.

Namespace:  Microsoft.Synchronization.Data.Server
Assembly:  Microsoft.Synchronization.Data.Server (in Microsoft.Synchronization.Data.Server.dll)

Syntax

'Declaration
Public Default Property Item ( _
    index As Integer _
) As SqlParameter
    Get
    Set
'Usage
Dim instance As FilterParameterCollection
Dim index As Integer
Dim value As SqlParameter

value = instance(index)

instance(index) = value
public SqlParameter this[
    int index
] { get; set; }
public:
property SqlParameter^ default[int index] {
    SqlParameter^ get (int index);
    void set (int index, SqlParameter^ value);
}
member Item : SqlParameter with get, set
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

Type: System.Data.SqlClient.SqlParameter
A SqlParameter object at the specified index in the collection.

Exceptions

Exception Condition
ArgumentOutOfRangeException

index is less than zero or greater than or equal to the number of parameters in this FilterParameterCollection object.

ArgumentNullException

value is a null reference (Nothing in Visual Basic).

See Also

Reference

FilterParameterCollection Class

Microsoft.Synchronization.Data.Server Namespace