Udostępnij za pośrednictwem


Guard.ArgumentNotNullOrEmptyString Method

Checks a string argument to ensure it isn't null or empty

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

Usage

'Usage
Dim argumentValue As String
Dim argumentName As String

Guard.ArgumentNotNullOrEmptyString(argumentValue, argumentName)

Syntax

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

Parameters

  • argumentValue
    Specifies the argument value to check.
  • 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.