SyncSchemaColumns.Add Method (String, Type)
Adds a SyncSchemaColumn object with the specified column name and data type to the end of the collection.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
Syntax
'Declaration
Public Function Add ( _
columnName As String, _
type As Type _
) As SyncSchemaColumn
'Usage
Dim instance As SyncSchemaColumns
Dim columnName As String
Dim type As Type
Dim returnValue As SyncSchemaColumn
returnValue = instance.Add(columnName, _
type)
public SyncSchemaColumn Add(
string columnName,
Type type
)
public:
SyncSchemaColumn^ Add(
String^ columnName,
Type^ type
)
member Add :
columnName:string *
type:Type -> SyncSchemaColumn
public function Add(
columnName : String,
type : Type
) : SyncSchemaColumn
Parameters
- columnName
Type: System.String
The name of the column to add to the SyncSchemaColumn collection.
- type
Type: System.Type
The data type of the column to add to the SyncSchemaColumn collection.
Return Value
Type: Microsoft.Synchronization.Data.SyncSchemaColumn
The SyncSchemaColumn object that was added to the collection.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | columnName is a null reference (Nothing in Visual Basic). |