Guard Class
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016
Represents the helper class for standard validations.
Namespace: Microsoft.Uii.Common
Assembly: Microsoft.Uii.Common (in Microsoft.Uii.Common.dll)
Inheritance Hierarchy
System.Object
Microsoft.Uii.Common.Guard
Syntax
public static class Guard
Public NotInheritable Class Guard
Methods
Name | Description | |
---|---|---|
ArgumentNotNull(Object, String) | Checks an argument to ensure it isn't null |
|
ArgumentNotNullOrEmptyString(String, String) | Checks a string argument to ensure it isn't null or empty |
|
GuidNotEmpty(Guid, String) | Checks to ensure that the GUID is not empty. |
|
ValidateUri(Uri, String) | Checks a URI argument to ensure it is valid. |
Remarks
This class is an internal class; it exposes static methods which are used to guard against null object, null string or empty string.
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.
See Also
Microsoft.Uii.Common Namespace
Return to top
Unified Service Desk 2.0
© 2017 Microsoft. All rights reserved. Copyright