Attachment Class

Describes a file attachment to a work item.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.WorkItemTracking.Client.Attachment

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

Syntax

声明
Public Class Attachment
public class Attachment
public ref class Attachment
type Attachment =  class end
public class Attachment

The Attachment type exposes the following members.

Constructors

  Name Description
Public method Attachment(String) Initializes a new file attachment instance.
Public method Attachment(String, String) Initializes a new file attachment instance.

Top

Properties

  Name Description
Public property AttachedTime Gets the attached date and time of this attachment.
Public property AttachedTimeUtc Gets the UTC attached date and time of this attachment.
Public property Comment Gets or sets the comment for this attachment.
Public property CreationTime Gets the creation date and time of this attachment.
Public property CreationTimeUtc Gets the UTC creation date and time of this attachment.
Public property Extension Gets the extension of the file name of this attachment.
Public property IsSaved Gets a flag that describes whether this attachment has been saved.
Public property LastWriteTime Gets the last modified date and time of this attachment.
Public property LastWriteTimeUtc Gets the UTC last modified date and time of this attachment.
Public property Length Gets the length of this file attachment.
Public property Name Gets the name of this attachment.
Public property Uri Gets the URI for the attachment. May be used to download the file directly.

Top

Methods

  Name Description
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 method GetHashCode Serves as a hash function for a particular type. (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 ToString Returns a string that represents the current object. (Inherited from Object.)

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.WorkItemTracking.Client Namespace