Workspace.Equals Method (Workspace, Workspace)
Compares two Workspace objects for equivalence.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function Equals ( _
x As Workspace, _
y As Workspace _
) As Boolean
public bool Equals(
Workspace x,
Workspace y
)
public:
virtual bool Equals(
Workspace^ x,
Workspace^ y
) sealed
abstract Equals :
x:Workspace *
y:Workspace -> bool
override Equals :
x:Workspace *
y:Workspace -> bool
public final function Equals(
x : Workspace,
y : Workspace
) : boolean
Parameters
x
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspaceThe first Workspace object to compare.
y
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspaceThe second Workspace object to compare.
Return Value
Type: System.Boolean
True if the two Workspace objects are equivalent; otherwise, false.
Implements
IEqualityComparer<T>.Equals(T, T)
Remarks
Compares the repository, workspace name, and the workspace owner name.
.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.