Udostępnij za pośrednictwem


Guard.ValidateUri Method

Checks a URI argument to ensure it is valid.

Namespace: Microsoft.Uii.Common
Assembly: Microsoft.Uii.Common (in Microsoft.Uii.Common.dll)

Usage

'Usage
Dim argumentValue As Uri
Dim argumentName As String

Guard.ValidateUri(argumentValue, argumentName)

Syntax

'Declaration
Public Shared Sub ValidateUri ( _
    argumentValue As Uri, _
    argumentName As String _
)
public static void ValidateUri (
    Uri argumentValue,
    string argumentName
)
public:
static void ValidateUri (
    Uri^ argumentValue, 
    String^ argumentName
)
public static void ValidateUri (
    Uri argumentValue, 
    String argumentName
)
public static function ValidateUri (
    argumentValue : Uri, 
    argumentName : String
)

Parameters

  • argumentValue
    Specifies the argument value.
  • argumentName
    Specifies the name of the argument.

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

See Also

Reference

Guard Class
Guard Members
Microsoft.Uii.Common Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.