Partilhar via


DataItemCollection.Add Method

Definition

Overloads

Add(DataItem)

Adds the specified DataItem to this collection.

Add(String, String)

Creates, adds to collection and returns a new DataItem with a ColumnBinding Source.

Add(String, String, DataType)

Creates, adds to collection and returns a new DataItem with a ColumnBinding Source.

Add(String, String, OleDbType)

Creates, adds to collection and returns a new DataItem with a ColumnBinding Source.

Add(String, String, DataType, Int32)

Creates, adds to collection and returns a new DataItem with a ColumnBinding Source.

Add(String, String, OleDbType, Int32)

Creates, adds to collection and returns a new DataItem with a ColumnBinding Source.

Add(DataItem)

Adds the specified DataItem to this collection.

public int Add (Microsoft.AnalysisServices.DataItem item);
member this.Add : Microsoft.AnalysisServices.DataItem -> int
Public Function Add (item As DataItem) As Integer

Parameters

item
DataItem

The DataItem to add to this collection.

Returns

The zero-based index in collection where the DataItem was added.

Applies to

Add(String, String)

Creates, adds to collection and returns a new DataItem with a ColumnBinding Source.

public Microsoft.AnalysisServices.DataItem Add (string tableName, string columnName);
member this.Add : string * string -> Microsoft.AnalysisServices.DataItem
Public Function Add (tableName As String, columnName As String) As DataItem

Parameters

tableName
String

The DataTable name for the ColumnBinding Source.

columnName
String

The DataColumn name for the ColumnBinding Source.

Returns

The newly created DataItem.

Applies to

Add(String, String, DataType)

Creates, adds to collection and returns a new DataItem with a ColumnBinding Source.

public Microsoft.AnalysisServices.DataItem Add (string tableName, string columnName, Microsoft.AnalysisServices.DataType type);
member this.Add : string * string * Microsoft.AnalysisServices.DataType -> Microsoft.AnalysisServices.DataItem
Public Function Add (tableName As String, columnName As String, type As DataType) As DataItem

Parameters

tableName
String

The DataTable name for the ColumnBinding Source.

columnName
String

The DataColumn name for the ColumnBinding Source.

type
DataType

The type for the new DataItem.

Returns

The newly created DataItem.

Applies to

Add(String, String, OleDbType)

Creates, adds to collection and returns a new DataItem with a ColumnBinding Source.

public Microsoft.AnalysisServices.DataItem Add (string tableName, string columnName, System.Data.OleDb.OleDbType dataType);
member this.Add : string * string * System.Data.OleDb.OleDbType -> Microsoft.AnalysisServices.DataItem
Public Function Add (tableName As String, columnName As String, dataType As OleDbType) As DataItem

Parameters

tableName
String

The DataTable name for the ColumnBinding Source.

columnName
String

The DataColumn name for the ColumnBinding Source.

dataType
OleDbType

The DataType for the new DataItem.

Returns

The newly created DataItem.

Applies to

Add(String, String, DataType, Int32)

Creates, adds to collection and returns a new DataItem with a ColumnBinding Source.

public Microsoft.AnalysisServices.DataItem Add (string tableName, string columnName, Microsoft.AnalysisServices.DataType type, int dataSize);
member this.Add : string * string * Microsoft.AnalysisServices.DataType * int -> Microsoft.AnalysisServices.DataItem
Public Function Add (tableName As String, columnName As String, type As DataType, dataSize As Integer) As DataItem

Parameters

tableName
String

The DataTable name for the ColumnBinding Source.

columnName
String

The DataColumn name for the ColumnBinding Source.

type
DataType

The type for the new DataItem.

dataSize
Int32

The DataSize for the new DataItem.

Returns

The newly created DataItem.

Applies to

Add(String, String, OleDbType, Int32)

Creates, adds to collection and returns a new DataItem with a ColumnBinding Source.

public Microsoft.AnalysisServices.DataItem Add (string tableName, string columnName, System.Data.OleDb.OleDbType dataType, int dataSize);
member this.Add : string * string * System.Data.OleDb.OleDbType * int -> Microsoft.AnalysisServices.DataItem
Public Function Add (tableName As String, columnName As String, dataType As OleDbType, dataSize As Integer) As DataItem

Parameters

tableName
String

The DataTable name for the ColumnBinding Source.

columnName
String

The DataColumn name for the ColumnBinding Source.

dataType
OleDbType

The DataType for the new DataItem.

dataSize
Int32

The DataSize for the new DataItem.

Returns

The newly created DataItem.

Applies to