Runs the specified action on all elements in the collection.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'宣言
Public Sub ForEach ( _
action As Action(Of T) _
)
'使用
Dim instance As ReadOnlyLinkedElementCollection
Dim action As Action(Of T)
instance.ForEach(action)
public void ForEach(
Action<T> action
)
public:
void ForEach(
Action<T>^ action
)
public function ForEach(
action : Action<T>
)
Parameters
action
Type: System.Action<T>An Action to run.
Permissions
- 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
ReadOnlyLinkedElementCollection<T> Class