Partilhar via


SPCmdlet.InternalValidate Method

Provides a means for validating user input during execution of the ProcessRecord() method.

Namespace:  Microsoft.SharePoint.PowerShell
Assembly:  Microsoft.SharePoint.PowerShell (in Microsoft.SharePoint.PowerShell.dll)

Syntax

'Declaration
Protected Overridable Sub InternalValidate
'Usage

Me.InternalValidate()
protected virtual void InternalValidate()

Remarks

This is a virtual method that can be overridden to validate user input. This method executes inside the ProcessRecord() method, but before execution of the InternalProcessRecord() method.

You must use the InternalDispose() method to provide clean-up code to dispose of any objects you created when using this method.

See Also

Reference

SPCmdlet Class

SPCmdlet Members

Microsoft.SharePoint.PowerShell Namespace