Share via


ODataUrlValidator.ValidateUrl Method

Definition

Validate the given ODataUri.

public bool ValidateUrl (Microsoft.OData.ODataUri odataUri, out System.Collections.Generic.IEnumerable<Microsoft.OData.UriParser.Validation.ODataUrlValidationMessage> validationMessages);
member this.ValidateUrl : Microsoft.OData.ODataUri * seq -> bool
Public Function ValidateUrl (odataUri As ODataUri, ByRef validationMessages As IEnumerable(Of ODataUrlValidationMessage)) As Boolean

Parameters

odataUri
ODataUri

The ODataUri to validate.

validationMessages
IEnumerable<ODataUrlValidationMessage>

An output parameter to return any validation messages associated with the oDataUri

Returns

True, if any errors are found, otherwise false.

Applies to