Share via


SPGetCmdletBase<TCmdletObject> Class

Abstract base class that allows derived classes to find and return a set of objects of type TCmdletObject.

Inheritance Hierarchy

System.Object
  InternalCommand
    Cmdlet
      PSCmdlet
        Microsoft.SharePoint.PowerShell.SPCmdlet
          Microsoft.SharePoint.PowerShell.SPGetCmdletBase<TCmdletObject>

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

Syntax

'Declaration
Public MustInherit Class SPGetCmdletBase(Of TCmdletObject As Class) _
    Inherits SPCmdlet
'Usage
Dim instance As SPGetCmdletBase(Of TCmdletObject)
public abstract class SPGetCmdletBase<TCmdletObject> : SPCmdlet
where TCmdletObject : class

Type Parameters

  • TCmdletObject
    An object of the data type that is returned by the cmdlet that inherits from this base class.

Remarks

The default behavior is to return all objects found. If a cmdlet needs to return only a subset of the found objects, it must set the ResultSize parameter.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPGetCmdletBase<TCmdletObject> Members

Microsoft.SharePoint.PowerShell Namespace