Share via


SPDeletedSitePipeBind.Read Method

Retrieves the deleted site object that is associated with the current pipebind object.

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

Syntax

'Declaration
Public Overrides Function Read As SPDeletedSite
'Usage
Dim instance As SPDeletedSitePipeBind
Dim returnValue As SPDeletedSite

returnValue = instance.Read()
public override SPDeletedSite Read()

Return Value

Type: Microsoft.SharePoint.Administration.SPDeletedSite
The deleted site object associated with the current pipebind object.

Exceptions

Exception Condition
SPCmdletPipeBindException

The value of the Count property is greater than 1, indicating more than one ID was found that matched the deleted site object.

Remarks

This method locates the object based on the unique identifying information that is supplied to it, for example, a GUID. If the object was placed on the pipeline, the object can serve as its own unique identifier.

See Also

Reference

SPDeletedSitePipeBind Class

SPDeletedSitePipeBind Members

Microsoft.SharePoint.PowerShell Namespace