SerializedWorkspace.Serialize Method

Note: This API is now obsolete.

Used to serialize a workspace into a local XML file that can be used in the CreateWorkspace task for generating another workspace.

Namespace:  Microsoft.TeamFoundation.Build.Tasks
Assembly:  Microsoft.TeamFoundation.Build.ProcessComponents (in Microsoft.TeamFoundation.Build.ProcessComponents.dll)

Syntax

'Declaration
<ObsoleteAttribute("This method has been deprecated. Please remove all references.")> _
Public Shared Function Serialize ( _
    mappingToSerialize As WorkingFolder(), _
    workspaceFileName As String _
) As SerializedWorkspace
[ObsoleteAttribute("This method has been deprecated. Please remove all references.")]
public static SerializedWorkspace Serialize(
    WorkingFolder[] mappingToSerialize,
    string workspaceFileName
)
[ObsoleteAttribute(L"This method has been deprecated. Please remove all references.")]
public:
static SerializedWorkspace^ Serialize(
    array<WorkingFolder^>^ mappingToSerialize, 
    String^ workspaceFileName
)
[<ObsoleteAttribute("This method has been deprecated. Please remove all references.")>]
static member Serialize : 
        mappingToSerialize:WorkingFolder[] * 
        workspaceFileName:string -> SerializedWorkspace
public static function Serialize(
    mappingToSerialize : WorkingFolder[], 
    workspaceFileName : String
) : SerializedWorkspace

Parameters

  • workspaceFileName
    Type: System.String

    This is the path of the local file to serialize the workspace into.

Return Value

Type: Microsoft.TeamFoundation.Build.Tasks.SerializedWorkspace
Returns SerializedWorkspace.

.NET Framework Security

See Also

Reference

SerializedWorkspace Class

Microsoft.TeamFoundation.Build.Tasks Namespace