Workspace.MatchOwnerName Method

Compares two workspace owners and returns true if they match. Comparisons are case insensitive.

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

Syntax

'Declaration
Public Shared Function MatchOwnerName ( _
    workspaceOwnerName1 As String, _
    workspaceOwnerName2 As String _
) As Boolean
'Usage
Dim workspaceOwnerName1 As String 
Dim workspaceOwnerName2 As String 
Dim returnValue As Boolean 

returnValue = Workspace.MatchOwnerName(workspaceOwnerName1, _
    workspaceOwnerName2)
public static bool MatchOwnerName(
    string workspaceOwnerName1,
    string workspaceOwnerName2
)
public:
static bool MatchOwnerName(
    String^ workspaceOwnerName1, 
    String^ workspaceOwnerName2
)
public static function MatchOwnerName(
    workspaceOwnerName1 : String, 
    workspaceOwnerName2 : String
) : boolean

Parameters

  • workspaceOwnerName1
    Type: System.String

    The first workspace owner to compare.

  • workspaceOwnerName2
    Type: System.String

    The second workspace owner to compare.

Return Value

Type: System.Boolean
true if the owners match; otherwise false.

.NET Framework Security

See Also

Reference

Workspace Class

Workspace Members

Microsoft.TeamFoundation.VersionControl.Client Namespace