Share via


SyncDataColumnCollection.Item Property

Gets or sets a column name 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 String
    Get
    Set
'Usage
Dim instance As SyncDataColumnCollection
Dim index As Integer
Dim value As String

value = instance(index)

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

Parameters

Property Value

Type: System.String
The name of the column at the specified index in the collection; otherwise a null value if the column does not exist.

Exceptions

Exception Condition
ArgumentNullException

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

ArgumentOutOfRangeException

index is less than zero or greater than or equal to the number of data columns in this SyncDataColumnCollection object.

See Also

Reference

SyncDataColumnCollection Class

Microsoft.Synchronization.Data.Server Namespace