Error.ArgumentUriHasQueryOrFragment Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates an ArgumentException with a message saying that the argument must be an absolute URI without a query or fragment identifier and then logs it with Error.

Namespace:  System.Web.Http.Common
Assembly:  System.Web.Http.Common (in System.Web.Http.Common.dll)

Syntax

'Declaration
Public Shared Function ArgumentUriHasQueryOrFragment ( _
    parameterName As String, _
    actualValue As Uri _
) As ArgumentException
public static ArgumentException ArgumentUriHasQueryOrFragment(
    string parameterName,
    Uri actualValue
)
public:
static ArgumentException^ ArgumentUriHasQueryOrFragment(
    String^ parameterName, 
    Uri^ actualValue
)
static member ArgumentUriHasQueryOrFragment : 
        parameterName:string * 
        actualValue:Uri -> ArgumentException 
public static function ArgumentUriHasQueryOrFragment(
    parameterName : String, 
    actualValue : Uri
) : ArgumentException

Parameters

  • parameterName
    Type: System.String
    The name of the parameter that caused the current exception.
  • actualValue
    Type: System.Uri
    The value of the argument that causes this exception.

Return Value

Type: System.ArgumentException
The logged Exception.

.NET Framework Security

See Also

Reference

Error Class

System.Web.Http.Common Namespace