Compartilhar via


ResultObjectsManager.FormatQuery Method

Formats a query for the result collection.

Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

'Usage
Dim instance As ResultObjectsManager
Dim baseQuery As String
Dim escapeForQueryUsage As Boolean
Dim normalizeValueForCondition As Boolean
Dim returnValue As String

returnValue = instance.FormatQuery(baseQuery, escapeForQueryUsage, normalizeValueForCondition)

Syntax

'Declaration
Public Function FormatQuery ( _
    baseQuery As String, _
    escapeForQueryUsage As Boolean, _
    normalizeValueForCondition As Boolean _
) As String
public string FormatQuery (
    string baseQuery,
    bool escapeForQueryUsage,
    bool normalizeValueForCondition
)
public:
virtual String^ FormatQuery (
    String^ baseQuery, 
    bool escapeForQueryUsage, 
    bool normalizeValueForCondition
) sealed
public final String FormatQuery (
    String baseQuery, 
    boolean escapeForQueryUsage, 
    boolean normalizeValueForCondition
)
public final function FormatQuery (
    baseQuery : String, 
    escapeForQueryUsage : boolean, 
    normalizeValueForCondition : boolean
) : String

Parameters

  • baseQuery
    [in] The base query.
  • escapeForQueryUsage
    [in] true to include escape characters to indicate query use.
  • normalizeValueForCondition
    [in] true to use normalized attribute values for conditions.

Return Value

Formatted query.

Remarks

The query can include replacement objects that are indicated by property, or named values that are indicated by key. The property or key is replaced by the value of the property, of the same name as the object in scope. There are also a number of predefined values that contain static properties.

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

ResultObjectsManager Class
ResultObjectsManager Members
Microsoft.ConfigurationManagement.ManagementProvider Namespace