This documentation is archived and is not being maintained.

DiffItemLocalWorkspace::Create Method

Creates 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.

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

public:
static DiffItemLocalWorkspace^ Create(
	Workspace^ workspace, 
	String^ item
)

Parameters

workspace
Type: Microsoft.TeamFoundation.VersionControl.Client::Workspace

The local workspace.

item
Type: System::String

The given file.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client::DiffItemLocalWorkspace
The created DiffItemLocalWorkspace object.

Show: