Skip to main content

SYNOPSIS

Escapes a value for safe use inside an OData filter string literal.

SYNTAX

DESCRIPTION

Doubles single quotes per the OData specification so that a value containing an apostrophe cannot break out of a ’…’ literal in a Graph -Filter expression (which would break the query or, worse, alter the filter).

EXAMPLES

EXAMPLE 1

PARAMETERS

-Value

The raw string value to escape. Empty strings are allowed.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.String

NOTES