Compartir a través de


ConnectionManagerBase.EscapeQueryString Method

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

'Usage
Dim instance As ConnectionManagerBase
Dim query As String
Dim escapeQuote As EscapeQuoteType
Dim returnValue As String

returnValue = instance.EscapeQueryString(query, escapeQuote)

Syntax

'Declaration
Public MustOverride Function EscapeQueryString ( _
    query As String, _
    escapeQuote As EscapeQuoteType _
) As String
public abstract string EscapeQueryString (
    string query,
    EscapeQuoteType escapeQuote
)
public:
virtual String^ EscapeQueryString (
    String^ query, 
    EscapeQuoteType escapeQuote
) abstract
public abstract String EscapeQueryString (
    String query, 
    EscapeQuoteType escapeQuote
)
public abstract function EscapeQueryString (
    query : String, 
    escapeQuote : EscapeQuoteType
) : String

Parameters

  • query
    [in] Query string.

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

Reference

ConnectionManagerBase Class
ConnectionManagerBase Members
Microsoft.ConfigurationManagement.ManagementProvider Namespace
ConnectionManagerBase.EscapeQuoteType