Identifier.EncodeIdentifier Method (String, QuoteType)
Encodes the identifier.
Namespace: Microsoft.Data.Schema.ScriptDom.Sql
Assembly: Microsoft.Data.Schema.ScriptDom.Sql (in Microsoft.Data.Schema.ScriptDom.Sql.dll)
Syntax
'Declaration
Public Shared Function EncodeIdentifier ( _
identifier As String, _
quoteType As QuoteType _
) As String
public static string EncodeIdentifier(
string identifier,
QuoteType quoteType
)
public:
static String^ EncodeIdentifier(
String^ identifier,
QuoteType quoteType
)
static member EncodeIdentifier :
identifier:string *
quoteType:QuoteType -> string
public static function EncodeIdentifier(
identifier : String,
quoteType : QuoteType
) : String
Parameters
- identifier
Type: System.String
Specifies the identifier
- quoteType
Type: Microsoft.Data.Schema.ScriptDom.Sql.QuoteType
Specifies the quote type
Return Value
Type: System.String
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.