Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Adds a workspace mapping that has the specified server item, local item, and mapping type.
Sets the mapping depth to 120.
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 _
) As IWorkspaceMapping
IWorkspaceMapping AddMapping(
string serverItem,
string localItem,
WorkspaceMappingType type
)
IWorkspaceMapping^ AddMapping(
String^ serverItem,
String^ localItem,
WorkspaceMappingType type
)
abstract AddMapping :
serverItem:string *
localItem:string *
type:WorkspaceMappingType -> IWorkspaceMapping
function AddMapping(
serverItem : String,
localItem : String,
type : WorkspaceMappingType
) : IWorkspaceMapping
Parameters
serverItem
Type: System.StringThe server item for the mapping.
localItem
Type: System.StringThe local item path for the mapping.
type
Type: Microsoft.TeamFoundation.Build.Client.WorkspaceMappingTypeThe mapping type to create.
Return Value
Type: Microsoft.TeamFoundation.Build.Client.IWorkspaceMapping
A new workspace mapping.
Remarks
If WorkspaceMappingType.Cloak is specified, the localItem is forced to null.
.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.