This documentation is archived and is not being maintained.

DiffItemLocalWorkspace Class

IDiffItem class for comparing files in local workspaces against their original (workspace version) content.


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

public class DiffItemLocalWorkspace : IDiffItem

The DiffItemLocalWorkspace type exposes the following members.

Public propertyIsTemporaryGets a flag that describes whether the diff item is temporary.
Public propertyLabelGets or sets the diff item label.
Public propertyLabelFileGets or sets the label file associated with the diff item.
Public propertyLabelTagGets or sets the label tag associated with the diff item.

Public methodStatic memberCreateCreates DiffItemLocalWorkspace object for a given file in a specified local workspace. Returns null if workspace is not local or file does not have baseline content stored.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEncodingReturns the encoding for the current workspace.
Public methodGetFileReturns the file associated with the workspace.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

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