Class Validate
Helper class for method parameter validation.
Inheritance
System.Object
Validate
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell
Assembly: EPiServer.Shell.dll
Version: 8.11.0Syntax
public static class Validate
Methods
RequiredParameter(String, Object)
Helper method to validate parameters. Throws ArgumentNullException when the parameter is null.
Declaration
public static void RequiredParameter(string parameterName, object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | The name of the parameter to check. |
System.Object | parameter | The parameter instance to check. |