Udostępnij za pośrednictwem


Guard.ArgumentNotNull Method

Checks an argument to ensure it isn't null

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

Usage

'Usage
Dim argumentValue As Object
Dim argumentName As String

Guard.ArgumentNotNull(argumentValue, argumentName)

Syntax

'Declaration
Public Shared Sub ArgumentNotNull ( _
    argumentValue As Object, _
    argumentName As String _
)
public static void ArgumentNotNull (
    Object argumentValue,
    string argumentName
)
public:
static void ArgumentNotNull (
    Object^ argumentValue, 
    String^ argumentName
)
public static void ArgumentNotNull (
    Object argumentValue, 
    String argumentName
)
public static function ArgumentNotNull (
    argumentValue : Object, 
    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.