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
'Declaration
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 | |
|---|---|---|
| .gif) | Attachment(String) | Initializes a new file attachment instance. | 
| .gif) | Attachment(String, String) | Initializes a new file attachment instance. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | AttachedTime | Gets the attached date and time of this attachment. | 
| .gif) | AttachedTimeUtc | Gets the UTC attached date and time of this attachment. | 
| .gif) | Comment | Gets or sets the comment for this attachment. | 
| .gif) | CreationTime | Gets the creation date and time of this attachment. | 
| .gif) | CreationTimeUtc | Gets the UTC creation date and time of this attachment. | 
| .gif) | Extension | Gets the extension of the file name of this attachment. | 
| .gif) | FileGuid | |
| .gif) | Id | |
| .gif) | IsSaved | Gets a flag that describes whether this attachment has been saved. | 
| .gif) | LastWriteTime | Gets the last modified date and time of this attachment. | 
| .gif) | LastWriteTimeUtc | Gets the UTC last modified date and time of this attachment. | 
| .gif) | Length | Gets the length of this file attachment. | 
| .gif) | Name | Gets the name of this attachment. | 
| .gif) | Uri | Gets the URI for the attachment. May be used to download the file directly. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | 
| .gif) | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | 
| .gif) | GetHashCode | Serves as the default hash function. (Inherited from Object.) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | 
| .gif) | 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.