共用方式為


WorkflowTemplateCollection.GetByName 方法

傳回與提供的名稱相符的工作流程範本。

命名空間:  Microsoft.SharePoint.Client.Workflow
組件:   Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)

語法

'宣告
Public Function GetByName ( _
    name As String _
) As WorkflowTemplate
'用途
Dim instance As WorkflowTemplateCollection
Dim name As String
Dim returnValue As WorkflowTemplate

returnValue = instance.GetByName(name)
public WorkflowTemplate GetByName(
    string name
)

參數

  • name
    類型:System.String

    若要擷取的工作流程範本的名稱。

傳回值

類型:Microsoft.SharePoint.Client.Workflow.WorkflowTemplate
傳回代表的工作流程範本符合所提供的名稱傳回WorkflowTemplate執行個體。

備註

它必須傳回 WorkflowTemplate 物件名稱屬性等於name參數,或集合中的 null 如果沒有這類 WorkflowTemplate 存在。集合中的所有 WorkflowTemplate 物件都必須其名稱屬性的唯一值。它不能null 參考 (未執行任何動作 於 Visual Basic 中)。

請參閱

參照

WorkflowTemplateCollection 類別

WorkflowTemplateCollection 成員

Microsoft.SharePoint.Client.Workflow 命名空間