Add(String,SnowflakeType,Int32,Int32,Int32) Method
The following example creates a
SnowflakeLoaderColumnCollection, adds an instance of
SnowflakeLoaderColumn to the collection, and returns a reference to the new
SnowflakeLoaderColumn.
|
|---|
public void CreateMyLoaderColumnColl(SnowflakeInternalLoader myLoader)
{
SnowflakeLoaderColumnCollection myColumnCollection = myLoader.Columns;
myColumnCollection.Add("DEPTNO", SnowflakeType.Integer, 0, 0, 0);
myColumnCollection.Add("DNAME", SnowflakeType.String, 0, 0, 0);
myColumnCollection.Add("LOC", SnowflakeType.String, 0, 0, 0);
} |
|
|---|
Public Sub CreateMyLoaderColumnColl(myLoader As SnowflakeInternalLoader)
Dim myColumnCollection As SnowflakeLoaderColumnCollection = myLoader.Columns
myColumnCollection.Add("DEPTNO", SnowflakeType.Integer, 0, 0, 0)
myColumnCollection.Add("DNAME", SnowflakeType.String, 0, 0, 0)
myColumnCollection.Add("LOC", SnowflakeType.String, 0, 0, 0)
End Sub |