Guard Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the helper class for standard validations.
public ref class Guard abstract sealed
public static class Guard
type Guard = class
Public Class Guard
- Inheritance
-
Guard
Remarks
This class is an internal class; it exposes static methods which are used to guard against null object, null string or empty string.
Methods
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. |