SPCmdletPipeBind<TCmdletObject> 类

一个抽象类,表示管线和 PowerShell cmdlet 参数的命令行输入的绑定。SharePoint 管道绑定类此泛型基类采用TCmdletObject的泛型类型。SPCmdletPipeBind<TCmdletObject>类提供抽象方法Read和Discover。这些 cmdlet 类使用Read方法来检索结果。Read方法检索对象实例表示当前管道绑定对象 ; 与相关的参数Discover方法填充所需检索或重新创建给定的对象的信息。所有的派生的类必须重写并实现这些方法。

继承层次结构

System.Object
  Microsoft.SharePoint.PowerShell.SPCmdletPipeBind<TCmdletObject>
    

命名空间:  Microsoft.SharePoint.PowerShell
程序集:  Microsoft.SharePoint.PowerShell(位于 Microsoft.SharePoint.PowerShell.dll 中)

语法

声明
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public MustInherit Class SPCmdletPipeBind(Of TCmdletObject As Class)
用法
Dim instance As SPCmdletPipeBind(Of TCmdletObject)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public abstract class SPCmdletPipeBind<TCmdletObject>
where TCmdletObject : class

类型参数

  • TCmdletObject
    一个表示从管道或命令行参数接收的数据的源对象。

备注

可以使用此和其他管道绑定类来简化处理的管道或命令行中的输入参数。管道绑定类通常允许传递引用对象的 Guid 的对象作为输入的参数,或作为字符串表示形式。由于管道绑定类型允许的灵活的表示形式输入数据,每个管道绑定类必须包含初始化的对象的表示形式,它提供的构造函数。

线程安全性

该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

引用

SPCmdletPipeBind<TCmdletObject> 成员

Microsoft.SharePoint.PowerShell 命名空间

继承层次结构

System.Object
  Microsoft.SharePoint.PowerShell.SPCmdletPipeBind<TCmdletObject>
    Microsoft.SharePoint.Administration.SPAppCmdlets.SPAppDomainPipeBind
    Microsoft.SharePoint.PowerShell.SPCmdletDistributedCacheClusterInfoManagerPipeBind
    Microsoft.SharePoint.PowerShell.SPDeletedSitePipeBind
    Microsoft.SharePoint.PowerShell.SPHealthAnalysisRuleInstancePipeBind
    Microsoft.SharePoint.PowerShell.SPPrefixPipeBind
    Microsoft.SharePoint.PowerShell.SPRequestManagementRuleCriteriaPipeBind
    Microsoft.SharePoint.PowerShell.SPRequestManagementSettingsPipeBind
    Microsoft.SharePoint.PowerShell.SPRoutingMachineInfoPipeBind
    Microsoft.SharePoint.PowerShell.SPRoutingMachinePoolPipeBind
    Microsoft.SharePoint.PowerShell.SPRoutingRulePipeBind
    Microsoft.SharePoint.PowerShell.SPRoutingRuleTargetPipeBind
    Microsoft.SharePoint.PowerShell.SPServerPipeBind
    Microsoft.SharePoint.PowerShell.SPSitePipeBind
    Microsoft.SharePoint.PowerShell.SPThrottlingRulePipeBind
    Microsoft.SharePoint.PowerShell.SPTrustedSecurityTokenServicePipeBind
    Microsoft.SharePoint.PowerShell.SPUserSettingsProviderPipeBind
    Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind
    Microsoft.SharePoint.PowerShell.SPWebPipeBind
    Microsoft.SharePoint.PowerShell.SPWopiBindingPipeBind