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
- mappingToSerialize
Type: array<Microsoft.TeamFoundation.VersionControl.Client.WorkingFolder[]
workspaceFileName
Type: System.StringThis 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.