ServerConnection.NormalizeQuery 方法 (String, Boolean)
將控制伺服器連接的查詢正規化。
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
Public Shared Function NormalizeQuery ( _
QueryText As String, _
QuotedIdentifiers As Boolean _
) As String
'用途
Dim QueryText As String
Dim QuotedIdentifiers As Boolean
Dim returnValue As String
returnValue = ServerConnection.NormalizeQuery(QueryText, _
QuotedIdentifiers)
public static string NormalizeQuery(
string QueryText,
bool QuotedIdentifiers
)
public:
static String^ NormalizeQuery(
String^ QueryText,
bool QuotedIdentifiers
)
static member NormalizeQuery :
QueryText:string *
QuotedIdentifiers:bool -> string
public static function NormalizeQuery(
QueryText : String,
QuotedIdentifiers : boolean
) : String
參數
- QueryText
型別:String
查詢的名稱。
- QuotedIdentifiers
型別:Boolean
true 表示啟用引號識別碼,否則為 false。
傳回值
型別:String
控制伺服器連接的查詢。