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
workspace
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspaceThe local workspace.
item
Type: System.StringThe given file.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.DiffItemLocalWorkspace
The created DiffItemLocalWorkspace object.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.