Partager via


ServicingContext.TryGetToken Method

Attempts to retrieve a token from the token bag.

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

Syntax

'Declaration
Public Function TryGetToken ( _
    tokenName As String, _
    <OutAttribute> ByRef value As String _
) As Boolean
public bool TryGetToken(
    string tokenName,
    out string value
)
public:
bool TryGetToken(
    String^ tokenName, 
    [OutAttribute] String^% value
)
member TryGetToken : 
        tokenName:string * 
        value:string byref -> bool
public function TryGetToken(
    tokenName : String, 
    value : String
) : boolean

Parameters

Return Value

Type: System.Boolean
True if token was found and it is not null or empty.

.NET Framework Security

See Also

Reference

ServicingContext Class

Microsoft.TeamFoundation.Framework.Server Namespace