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)


Public Function TryGetValue ( _
    cookie As TCookie, _
    <OutAttribute> ByRef value As TValue _
) As Boolean
‘사용 방법
Dim instance As CookieTable
Dim cookie As TCookie
Dim value As TValue
Dim returnValue As Boolean

returnValue = instance.TryGetValue(cookie, _
public bool TryGetValue(
    TCookie cookie,
    out TValue value
bool TryGetValue(
    TCookie cookie, 
    [OutAttribute] TValue% value
member TryGetValue : 
        cookie:'TCookie * 
        value:'TValue byref -> bool 
public function TryGetValue(
    cookie : TCookie, 
    value : TValue
) : boolean


  • cookie
    Type: TCookie
    cookie to search
  • value
    Type: TValue%
    found value

Return Value

Type: System.Boolean

.NET Framework Security

See Also


CookieTable<TCookie, TCookieTraits, TValue> Class

CookieTable<TCookie, TCookieTraits, TValue> Members

Microsoft.Internal.VisualStudio.PlatformUI Namespace