Delen via


TeamFoundationFileService Class

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationFileService

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

Syntax

'Declaration
<TeamFoundationServiceDependency(GetType(TeamFoundationSqlNotificationService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationRegistryService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationResourceManagementService))> _
Public Class TeamFoundationFileService _
    Implements ITeamFoundationService, IDisposable
[TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationRegistryService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationResourceManagementService))]
public class TeamFoundationFileService : ITeamFoundationService, 
    IDisposable
[TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationRegistryService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationResourceManagementService))]
public ref class TeamFoundationFileService : ITeamFoundationService, 
    IDisposable
[<TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationRegistryService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationResourceManagementService))>]
type TeamFoundationFileService =  
    class 
        interface ITeamFoundationService 
        interface IDisposable 
    end
public class TeamFoundationFileService implements ITeamFoundationService, IDisposable

The TeamFoundationFileService type exposes the following members.

Constructors

  Name Description
Public method TeamFoundationFileService

Top

Methods

  Name Description
Public method ComputePendingDelta
Public method ComputePendingDeltas Computes all pending deltas
Public method CopyStreamToTempFile
Public method DeleteFile Deletes the given file (Marks it as unaccessible).
Public method DeleteFiles
Public method DeleteNamedFiles
Public method DoCleanup Cleans up orphaned blobs out of the file service
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic member FromMimeType
Public method GetFileStatistics Retrieves File Statistics about the given file id - used mostly for testing
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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method QueryNamedFiles(TeamFoundationRequestContext, OwnerId)
Public method QueryNamedFiles(TeamFoundationRequestContext, OwnerId, String)
Public method RenameFile Rename the given file
Public method RetrieveFile(TeamFoundationRequestContext, Int32, CompressionType%) Retrieves a file from the Blob Store
Public method RetrieveFile(TeamFoundationRequestContext, Int32, Boolean, array<Byte[]%, Int64%, CompressionType%) Retrieves a file from the blob store
Public method RetrieveNamedFile
Public method ServiceEnd ITeamFoundationService.ServiceEnd
Public method ServiceStart ITeamFoundationService.ServiceStart
Public methodStatic member ToMimeType
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryGetFileId Returns the file id of the file with the given name
Public method UploadFile(TeamFoundationRequestContext, array<Byte[]) Uploads the given file to the Blob Store
Public method UploadFile(TeamFoundationRequestContext, array<Byte[], array<Byte[]) Uploads the given file to the Blob Store
Public method UploadFile(TeamFoundationRequestContext, Stream, OwnerId) Uploads the given file to the Blob Store
Public method UploadFile(TeamFoundationRequestContext, Stream, OwnerId, String) Uploads the given file to the Blob Store
Public method UploadFile(TeamFoundationRequestContext, Stream, array<Byte[], OwnerId) Uploads the given file to the Blob Store
Public method UploadFile(TeamFoundationRequestContext, array<Byte[], array<Byte[], Int64, CompressionType) Uploads the given file to the Blob Store
Public method UploadFile(TeamFoundationRequestContext, Stream, array<Byte[], Int64, CompressionType, OwnerId, String, Int32) Uploads the given file to the Blob Store
Public method UploadFile(TeamFoundationRequestContext, Int32%, array<Byte[], Int64, Int64, CompressionType, Int64, array<Byte[], Int32, OwnerId, String, Int32)
Public method UploadFile(TeamFoundationRequestContext, Int32%, Stream, array<Byte[], Int64, Int64, Int64, CompressionType, OwnerId, String, Int32, Boolean) Uploads the given file to the Blob Store

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IDisposable.Dispose Dispose - do not call directly!

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