共用方式為


Workspace.Equals Method (Object)

Compares this Workspace instance to another Workspace object.

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

Syntax

'宣告
Public Overrides Function Equals ( _
    obj As Object _
) As Boolean
public override bool Equals(
    Object obj
)
public:
virtual bool Equals(
    Object^ obj
) override
abstract Equals : 
        obj:Object -> bool 
override Equals : 
        obj:Object -> bool 
public override function Equals(
    obj : Object
) : boolean

Parameters

  • obj
    Type: System.Object
    The second Workspace object to compare.

Return Value

Type: System.Boolean
True if this workspace and obj are equivalent; otherwise, false.

Remarks

Compares the repository, name, and owner.

.NET Framework Security

See Also

Reference

Workspace Class

Equals Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace