CookieTable<TCookie, TCookieTraits, TValue>.TryGetValue Method
Checks whether the specified cookie is still in the table and returns the associated value
Namespace: Microsoft.Internal.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Déclaration
Public Function TryGetValue ( _
cookie As TCookie, _
<OutAttribute> ByRef value As TValue _
) As Boolean
'Utilisation
Dim instance As CookieTable
Dim cookie As TCookie
Dim value As TValue
Dim returnValue As Boolean
returnValue = instance.TryGetValue(cookie, _
value)
public bool TryGetValue(
TCookie cookie,
out TValue value
)
public:
bool TryGetValue(
TCookie cookie,
[OutAttribute] TValue% value
)
member TryGetValue :
cookie:'TCookie *
value:'TValue byref -> bool
public function TryGetValue(
cookie : TCookie,
value : TValue
) : boolean
Parameters
- cookie
Type: TCookie
cookie to search
- value
Type: TValue%
found value
Return Value
Type: System.Boolean
.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.
See Also
Reference
CookieTable<TCookie, TCookieTraits, TValue> Class