Share via


SPGetCmdletBase<TCmdletObject>.RetrieveDataObjects method

Locates and retrieves a list of data objects that correspond to the cmdlet parameters.

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

Syntax

'Declaration
Protected MustOverride Function RetrieveDataObjects As IEnumerable(Of TCmdletObject)
'Usage
Dim returnValue As IEnumerable(Of TCmdletObject)

returnValue = Me.RetrieveDataObjects()
protected abstract IEnumerable<TCmdletObject> RetrieveDataObjects()

Return value

Type: System.Collections.Generic.IEnumerable<TCmdletObject>
Returns IEnumerable<T> that represents the list of data objects.

Remarks

Derived classes must implement this method.

See also

Reference

SPGetCmdletBase<TCmdletObject> class

SPGetCmdletBase<TCmdletObject> members

Microsoft.SharePoint.PowerShell namespace