This documentation is archived and is not being maintained.

IWorkspaceTemplate Interface

Represents a build definition workspace on the server that is running Team Foundation Build.

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

public interface IWorkspaceTemplate

The IWorkspaceTemplate type exposes the following members.

Public propertyLastModifiedByGets the user who last modified this workspace.
Public propertyLastModifiedDateGets the date and time when this workspace was last modified.
Public propertyMappingsGets the workspace mappings for this workspace.

Public methodAddMapping()Adds a workspace mapping to this workspace.
Public methodAddMapping(String, String, WorkspaceMappingType)Adds a workspace mapping that has the specified server item, local item, and mapping type. Sets the mapping depth to 120.
Public methodAddMapping(String, String, WorkspaceMappingType, WorkspaceMappingDepth)Adds a workspace mapping that has the specified server item, local item, mapping type, and depth.
Public methodCloakAdds a cloak entry to this workspace for the specified server item.
Public methodCopyFromCopies properties from a source workspace template to this one
Public methodMapAdds a workspace mapping that has the specified server item and local item. Sets the mapping type to WorkspaceMappingType.Map.
Public methodRemoveMapping(String)Removes the mapping for the specified server item from the workspace template.
Public methodRemoveMapping(IWorkspaceMapping)Removes the specified mapping from the workspace template.