Share via


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)

Syntax

'Declaration
Function AddMapping ( _
    serverItem As String, _
    localItem As String, _
    type As WorkspaceMappingType, _
    depth As WorkspaceMappingDepth _
) As IWorkspaceMapping
IWorkspaceMapping AddMapping(
    string serverItem,
    string localItem,
    WorkspaceMappingType type,
    WorkspaceMappingDepth depth
)
IWorkspaceMapping^ AddMapping(
    String^ serverItem, 
    String^ localItem, 
    WorkspaceMappingType type, 
    WorkspaceMappingDepth depth
)
abstract AddMapping : 
        serverItem:string * 
        localItem:string * 
        type:WorkspaceMappingType * 
        depth:WorkspaceMappingDepth -> IWorkspaceMapping 
function AddMapping(
    serverItem : String, 
    localItem : String, 
    type : WorkspaceMappingType, 
    depth : WorkspaceMappingDepth
) : IWorkspaceMapping

Parameters

  • serverItem
    Type: System.String
    The server item for the mapping.
  • localItem
    Type: System.String
    The local item path for the mapping.

Return Value

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

Remarks

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

.NET Framework Security

See Also

Reference

IWorkspaceTemplate Interface

AddMapping Overload

Microsoft.TeamFoundation.Build.Client Namespace