Freigeben über


Add-Methode (String, String, OleDbType, Int32)

Creates and adds a DataItem, with the specified table name, column name, data type, and data size, to the end of the collection.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Syntax

'Declaration
Public Function Add ( _
    tableName As String, _
    columnName As String, _
    dataType As OleDbType, _
    dataSize As Integer _
) As DataItem
'Usage
Dim instance As DataItemCollection
Dim tableName As String
Dim columnName As String
Dim dataType As OleDbType
Dim dataSize As Integer
Dim returnValue As DataItem

returnValue = instance.Add(tableName, _
    columnName, dataType, dataSize)
public DataItem Add(
    string tableName,
    string columnName,
    OleDbType dataType,
    int dataSize
)
public:
DataItem^ Add(
    String^ tableName, 
    String^ columnName, 
    OleDbType dataType, 
    int dataSize
)
member Add : 
        tableName:string * 
        columnName:string * 
        dataType:OleDbType * 
        dataSize:int -> DataItem 
public function Add(
    tableName : String, 
    columnName : String, 
    dataType : OleDbType, 
    dataSize : int
) : DataItem

Parameter

Rückgabewert

Typ: Microsoft.AnalysisServices. . :: . .DataItem
A new DataItem with the specified table name, column name, data type, and data size.