Condividi tramite


WorkflowHelpers.TryDeserializeWorkflow Method

This method is used by client (returning all the errors instead of throwing at first one)

Namespace:  Microsoft.TeamFoundation.Build.Workflow
Assembly:  Microsoft.TeamFoundation.Build.Workflow (in Microsoft.TeamFoundation.Build.Workflow.dll)

Syntax

'Declaration
Public Shared Function TryDeserializeWorkflow ( _
    markup As String, _
    <OutAttribute> ByRef parameters As Dictionary(Of String, ProcessParameter), _
    <OutAttribute> ByRef metadata As ProcessParameterMetadataCollection, _
    <OutAttribute> ByRef parameterErrors As List(Of ProcessParameterError), _
    <OutAttribute> ByRef assemblyMismatches As List(Of ProcessParameterError) _
) As Boolean
public static bool TryDeserializeWorkflow(
    string markup,
    out Dictionary<string, ProcessParameter> parameters,
    out ProcessParameterMetadataCollection metadata,
    out List<ProcessParameterError> parameterErrors,
    out List<ProcessParameterError> assemblyMismatches
)
public:
static bool TryDeserializeWorkflow(
    String^ markup, 
    [OutAttribute] Dictionary<String^, ProcessParameter^>^% parameters, 
    [OutAttribute] ProcessParameterMetadataCollection^% metadata, 
    [OutAttribute] List<ProcessParameterError^>^% parameterErrors, 
    [OutAttribute] List<ProcessParameterError^>^% assemblyMismatches
)
static member TryDeserializeWorkflow : 
        markup:string * 
        parameters:Dictionary<string, ProcessParameter> byref * 
        metadata:ProcessParameterMetadataCollection byref * 
        parameterErrors:List<ProcessParameterError> byref * 
        assemblyMismatches:List<ProcessParameterError> byref -> bool
public static function TryDeserializeWorkflow(
    markup : String, 
    parameters : Dictionary<String, ProcessParameter>, 
    metadata : ProcessParameterMetadataCollection, 
    parameterErrors : List<ProcessParameterError>, 
    assemblyMismatches : List<ProcessParameterError>
) : boolean

Parameters

Return Value

Type: System.Boolean

.NET Framework Security

See Also

Reference

WorkflowHelpers Class

Microsoft.TeamFoundation.Build.Workflow Namespace