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.181-beta
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