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
tokenName
Type: System.StringThe name of the token.
value
Type: System.String%The token value.
Return Value
Type: System.Boolean
True if token was found and it is not null or empty.
.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.