Execute the specified callback for each of the elements in the cookie table, allows to call back even for elements that are removed during the iteration
Namespace:  Microsoft.Internal.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
声明
Public Sub ForEach ( _
    callback As CookieTableCallback(Of TCookie, TValue), _
    skipRemoved As Boolean _
)
用法
Dim instance As CookieTable
Dim callback As CookieTableCallback(Of TCookie, TValue)
Dim skipRemoved As Boolean
instance.ForEach(callback, skipRemoved)
public void ForEach(
    CookieTableCallback<TCookie, TValue> callback,
    bool skipRemoved
)
public:
void ForEach(
    CookieTableCallback<TCookie, TValue>^ callback, 
    bool skipRemoved
)
member ForEach : 
        callback:CookieTableCallback<'TCookie, 'TValue> * 
        skipRemoved:bool -> unit 
public function ForEach(
    callback : CookieTableCallback<TCookie, TValue>, 
    skipRemoved : boolean
)
Parameters
- callback
Type: Microsoft.Internal.VisualStudio.PlatformUI.CookieTableCallback<TCookie, TValue>
The callback function to call for each iterated element 
- skipRemoved
Type: System.Boolean
Whether the callback should be called or not for elemens removed during the iteration 
.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