Checks for the existence of a column in a table

Namespace:  DbNetLink.Data
Assembly:  DbNetLink.DbNetData (in DbNetLink.DbNetData.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public bool ColumnExists(
	string TableName,
	string ColumnName
)
Visual Basic (Declaration)
Public Function ColumnExists ( _
	TableName As String, _
	ColumnName As String _
) As Boolean
Visual C++
public:
bool ColumnExists(
	String^ TableName, 
	String^ ColumnName
)

Parameters

TableName
Type: System..::.String

The name of the table

ColumnName
Type: System..::.String

The name of the column

Return Value

Returns true if the column exists

See Also