This documentation is archived and is not being maintained.

IWorkspaceTemplate::AddMapping Method (String, String, WorkspaceMappingType, WorkspaceMappingDepth)

Adds a workspace mapping that has the specified server item, local item, mapping type, and depth.

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

IWorkspaceMapping^ AddMapping(
	String^ serverItem, 
	String^ localItem, 
	WorkspaceMappingType type, 
	WorkspaceMappingDepth depth
)

Parameters

serverItem
Type: System::String

The server item for the mapping.

localItem
Type: System::String

The local item path for the mapping.

type
Type: Microsoft.TeamFoundation.Build.Client::WorkspaceMappingType

The mapping type to create.

depth
Type: Microsoft.TeamFoundation.Build.Client::WorkspaceMappingDepth

The depth of the mapping.

Return Value

Type: Microsoft.TeamFoundation.Build.Client::IWorkspaceMapping
A new workspace mapping.

If WorkspaceMappingType.Cloak is specified, the localItem parameter is forced to null.

Show: