Delen via


TeamFoundationFileContainerService Class

Manages containers and container items.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationFileContainerService

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public NotInheritable Class TeamFoundationFileContainerService _
    Implements ITeamFoundationService
public sealed class TeamFoundationFileContainerService : ITeamFoundationService
public ref class TeamFoundationFileContainerService sealed : ITeamFoundationService
[<Sealed>]
type TeamFoundationFileContainerService =  
    class 
        interface ITeamFoundationService 
    end
public final class TeamFoundationFileContainerService implements ITeamFoundationService

The TeamFoundationFileContainerService type exposes the following members.

Constructors

  Name Description
Public method TeamFoundationFileContainerService

Top

Methods

  Name Description
Public method CopyFiles Copies the source file (Item1) to the target file (Item2) in the list of Tuples under the following conditions: - Sources all exist - Targets do not exist and are all unique
Public method CopyFolder Copy the source folder to the target folder under the following conditions: - Source folder exists and contains no pending uploads - Target folder does not exist and is not a child of the source folder
Public method CreateContainer Creates a new container.
Public method CreateItems Creates items in a container. If the items already exist with the same types, overwrite them. If the items already exist with different types, throw an exception.
Public method DeleteContainer Deletes a container.
Public method DeleteItems Deletes items from a container. If the item is a file, delete that item. If the item is a folder, deletes the folder and its child items. Only deletes listed items.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetContainer Gets a container.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method QueryContainers(TeamFoundationRequestContext) Queries all containers.
Public method QueryContainers(TeamFoundationRequestContext, IList<Uri>) Queries the containers by a list of artifacts.
Public method QueryItems(TeamFoundationRequestContext, Int64, String) Queries items from a container. If the path points to a file or a string, returns that item. If the path point to a folder, returns the folder and its child items. If the path is not specified, returns all items of the container.
Public method QueryItems(TeamFoundationRequestContext, Int64, String, Boolean) Queries items from a container. If the path points to a file or a string, returns that item. If the path point to a folder, returns the folder and its child items. If the path is not specified, returns all items of the container.
Public method RenameFiles Reanmes the source file (Item1) to the target file (Item2) in the list of Tuples under the following conditions: - Sources all exist - Targets do not exist and are all unique
Public method RenameFolder Renames the source folder to the target folder under the following conditions: - Source folder exists and contains no pending uploads - Target folder does not exist and is not a child of the source folder
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method UploadFile Uploads a file to the container.
Public method WriteContents

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method ITeamFoundationService.ServiceEnd
Explicit interface implemetationPrivate method ITeamFoundationService.ServiceStart

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Framework.Server Namespace