Prepares the specified query string to be sent to the provider. The method adds escape sequences so that any reserved characters in the query are maintained. Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

Visual Basic
Dim instance As ConnectionManagerBase
Dim query As String
Dim escapeQuote As EscapeQuoteType
Dim returnValue As String

returnValue = instance.EscapeQueryString(query, escapeQuote)

Syntax

Visual Basic
Public MustOverride Function EscapeQueryString ( _
		query As String, _
		escapeQuote As EscapeQuoteType _
) As String
C#
public abstract string EscapeQueryString (
		string query,
		EscapeQuoteType escapeQuote
)
C++
public:
virtual String^ EscapeQueryString (
		String^ query, 
		EscapeQuoteType escapeQuote
) abstract
J#
public abstract String EscapeQueryString (
		String query, 
		EscapeQuoteType escapeQuote
)
JScript
public abstract function EscapeQueryString (
		query : String, 
		escapeQuote : EscapeQuoteType
) : String

Parameters

query

[in] Query string.

escapeQuote

[in] ConnectionManagerBase.EscapeQuoteType value to set as the escape character.

Return Value

Query string with escape sequences added.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also