Share via


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)

Syntax

'Declaration
Public Shared Function Create ( _
    workspace As Workspace, _
    item As String _
) As DiffItemLocalWorkspace
public static DiffItemLocalWorkspace Create(
    Workspace workspace,
    string item
)
public:
static DiffItemLocalWorkspace^ Create(
    Workspace^ workspace, 
    String^ item
)
static member Create : 
        workspace:Workspace * 
        item:string -> DiffItemLocalWorkspace
public static function Create(
    workspace : Workspace, 
    item : String
) : DiffItemLocalWorkspace

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

DiffItemLocalWorkspace Class

Microsoft.TeamFoundation.VersionControl.Client Namespace