Click or drag to resize

AdoDataConnectionEscapeIdentifier Method

Escapes an identifier, e.g., a table or field name, using the common delimiter for the connected AdoDataConnection database type or the standard ANSI escaping delimiter, i.e., double-quotes, based on the useAnsiQuotes flag.

Namespace: GSF.Data
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.249-beta+56964f8aed6f3f2e54faec1539f7ce0ba6548fdf
Syntax
public string EscapeIdentifier(
	string identifier,
	bool useAnsiQuotes = false
)
View Source

Parameters

identifier  String
Field name to escape.
useAnsiQuotes  Boolean  (Optional)
Force use of double-quote for identifier delimiter, per SQL-99 standard, regardless of database type.

Return Value

String
Escaped identifier name.
Exceptions
ExceptionCondition
ArgumentExceptionidentifier value cannot be null, empty or whitespace.
See Also