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.218-beta+101eee949414e414795e55a6e73d88938f0177b8
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