共用方式為


SPCmdlet.InternalDispose Method

Used by inheriting classes to provide clean-up code to dispose objects that were created by using the InternalValidate(), ConfirmationMessage, or InternalProcessRecord() methods.

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

Syntax

'Declaration
Protected Overridable Sub InternalDispose
'Usage

Me.InternalDispose()
protected virtual void InternalDispose()

Remarks

You must override this method in the derived class to provide clean-up code to dispose of objects that you created by using the "internal" methods, InternalValidate(), ConfirmationMessage, or InternalProcessRecord().

This method is called by PowerShell one time for each object in the pipeline.

See Also

Reference

SPCmdlet Class

SPCmdlet Members

Microsoft.SharePoint.PowerShell Namespace