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.StringThe name, such as, "My Service Account (ACME)".
accountName
Type: System.String%The parsed account name, such as, "My Service Account".
scope
Type: System.String%The parsed scope, such as "(ACME)".
.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.