ServiceIdentity.ParseName Method

Parses the name into accountName and scope. Before: "My Service Acccount (ACME)." After: accountName: "My Service Account" Scope: "(ACME)"

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Shared Sub ParseName ( _
    name As String, _
    <OutAttribute> ByRef accountName As String, _
    <OutAttribute> ByRef scope As String _
)
public static void ParseName(
    string name,
    out string accountName,
    out string scope
)
public:
static void ParseName(
    String^ name, 
    [OutAttribute] String^% accountName, 
    [OutAttribute] String^% scope
)
static member ParseName : 
        name:string * 
        accountName:string byref * 
        scope:string byref -> unit
public static function ParseName(
    name : String, 
    accountName : String, 
    scope : String
)

Parameters

  • name
    Type: System.String

    The name, such as, "My Service Account (ACME)".

  • accountName
    Type: System.String%

    The parsed account name, such as, "My Service Account".

.NET Framework Security

See Also

Reference

ServiceIdentity Class

Microsoft.TeamFoundation.Framework.Server Namespace