Compartilhar via


SPWebApplicationPipeBind Class

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.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.PowerShell.SPCmdletPipeBind<SPWebApplication>
    Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind

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

Syntax

'Declaration
Public NotInheritable Class SPWebApplicationPipeBind _
    Inherits SPCmdletPipeBind(Of SPWebApplication)
'Usage
Dim instance As SPWebApplicationPipeBind
public sealed class SPWebApplicationPipeBind : SPCmdletPipeBind<SPWebApplication>

Remarks

This class inherits from the SPCmdletPipeBind<TCmdletObject> generic base class, an abstract class providing Read and Discover methods that this class overrides. The Read method is used to retrieve the Web application object instance that is associated with the current SPWebApplicationPipeBind object; the Discover method populates the information that is required to retrieve or recreate the given SPWebApplication object. The cmdlet classes use the Read method to retrieve results.

This class is sealed and cannot be inherited.

You can use this and other pipebind classes to simplify the handling of input parameters from the pipeline or the command line. Pipebind classes typically allow input parameters to be passed and referenced as objects, GUIDs that reference objects, or as string representations. Because pipebind types allow for the flexible representation of input data, each pipebind class must include constructors that initialize the object for the representations that it provides.

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

SPWebApplicationPipeBind Members

Microsoft.SharePoint.PowerShell Namespace