Microsoft.SharePoint.PowerShell Namespace
Base classes that permit you to create custom Windows PowerShell for SharePoint cmdlets.
When writing custom Windows PowerShell cmdlets to operate in the SharePoint Foundation 2010 context, it is important that you inherit from these base classes, which provide SharePoint-specific implementations of the core PowerShell classes.
Classes
Class | Description | |
---|---|---|
SPAssignmentCollection | This class and its members are reserved for internal use and are not intended to be used in your code. | |
SPCmdlet | Represents an abstract base class for all custom cmdlets that are written to be used in SharePoint deployments, providing uniform behavior across all SharePoint cmdlets. | |
SPCmdletAttribute | Specifies the attributes to apply to a cmdlet that inherits from SPCmdlet. | |
SPCmdletException | Exception class that uses localized strings instead of hard-coded strings. | |
SPCmdletPipeBind<TCmdletObject> | An abstract class that represents a binding for pipeline and command-line input to PowerShell cmdlet parameters. This generic base class for SharePoint pipebind classes takes a generic type of TCmdletObject. The SPCmdletPipeBind<TCmdletObject> class provides the abstract methods Read and Discover. The cmdlet classes use the Read method to retrieve results. The Read method retrieves the object instance that represents the parameters associated with the current pipebind object; the Discover method populates the information that is required to retrieve or recreate the given object. All derived classes must override and implement these methods. | |
SPCmdletPipeBindException | Exception class used by classes that inherit from SPCmdletPipeBind classes to indicate that an exception occurred. | |
SPContentDatabasePipeBind | Represents a binding for pipeline and command-line input to PowerShell cmdlet parameters. The binding that this class represents is to input parameters specific to a content database in a Microsoft SharePoint Foundation deployment. This class facilitates the binding to and handling of input parameters as an instance of an SPContentDatabase object, a GUID referencing an object, and as the string representation of a GUID. | |
SPDeletedSitePipeBind | Represents a binding for pipeline and command-line input to PowerShell cmdlet parameters. | |
SPGetCmdletBase<TCmdletObject> | Abstract base class that allows derived classes to find and return a set of objects of type TCmdletObject. | |
SPHealthAnalysisRuleInstancePipeBind | ||
SPIisWebServiceApplicationPoolPipeBind | Represents a binding for pipeline and command-line input to PowerShell cmdlet parameters. The binding that this class represents is to input parameters specific to an IIS Web service application pool in a server farm. This class facilitates the binding to and handling of input parameters as an instance of a service application object or as a GUID or string identifier. | |
SPNewCmdletBase<TCmdletObject> | An abstract base class that is used to create new instances of objects and save them to the data store. | |
SPPrefixPipeBind | Represents a binding for pipeline or command-line input parameters to a Windows PowerShell cmdlet. The binding that this class represents is to input parameters specific to a SharePoint FoundationSPPrefix object. For more information about PipeBind objects, see Key Concepts for Writing Cmdlets for the SharePoint Management Shell. | |
SPRemoveCmdletBase<TCmdletObject> | An abstract base class that removes an existing data object of the specified type from the data store. | |
SPServerPipeBind | Represents a binding for pipeline and command-line input to PowerShell cmdlet parameters. The binding that this class represents is to input parameters specific to a SharePoint Server instance represented by an SPServer object. This class facilitates the binding to and handling of input parameters as objects, a GUID referencing an object, and as string representations. | |
SPServiceApplicationPipeBind | Represents a binding for pipeline and command-line input to PowerShell cmdlet parameters. The binding that this class represents is to input parameters specific to SharePoint service applications that are represented as SPServiceApplication objects. This class facilitates the binding to and handling of input parameters as an instance of an SPServiceApplication object, a GUID identifier, or a string representation of a GUID. | |
SPServiceApplicationProxyPipeBind | Represents a binding for pipeline and command-line input to PowerShell cmdlet parameters. The binding that this class represents is to input parameters specific to SharePoint Service proxy applications that are represented as SPServiceApplicationProxy objects. This class facilitates the binding to and handling of input parameters as an instance of an SPServiceApplicationProxy object, a GUID identifier, or a string representation of a GUID. | |
SPServiceContextPipeBind | Represents a binding for pipeline and command-line input to PowerShell cmdlet parameters. The binding that this class represents is to input parameters specific to SharePoint Service context that is represented as an SPServiceContext object. This class facilitates the binding to and handling of input parameters as an instance of an SPServiceContext object, an SPSiteAdministration object identifier, or any of the following belonging to an SPSite object: An identifier from the Id field, a string identifier, a URI or a string representation of a GUID. | |
SPSetCmdletBase<TCmdletObject> | An abstract base class that derived classes can use to update properties for existing objects in the data store. | |
SPSitePipeBind | Represents a binding for pipeline and command-line input to PowerShell cmdlet parameters. This class facilitates the binding to and handling of input parameters as a string representation of a GUID reference, a string representation of a URI, a GUID or URI referencing an SPSite object, the SPSite object itself, or an SPSiteAdministration object. | |
SPSiteSubscriptionPipeBind | Represents a binding for pipeline and command-line input to PowerShell cmdlet parameters. The binding that this class represents is to input parameters specific to the loose association of SharePoint sites represented by an SPSiteSubscription object. This class facilitates the binding to and handling of input parameters as an instance of an SPSiteSubscription object, the URI or URL of an SPSite object, or the GUID identifier of the SPSiteSubscription object. | |
SPWebApplicationPipeBind | Represents a binding for pipeline or command-line input parameters to PowerShell cmdlets. The binding that this class represents is to input parameters specific to a Microsoft SharePoint Foundation 2010 Web application. This class facilitates the binding to and handling of input parameters as an SPWebApplication object instance, as the string representation of a GUID that references an object, as a name of the Web application, or as the URL of the Web application. | |
SPWebPipeBind | Represents a binding for pipeline and command-line input to PowerShell cmdlet parameters. This class facilitates the binding to and handling of input parameters as a SharePoint Web site, and as the string representation of a GUID reference to or the URL of the site. |