GraphNodeCollection.Remove Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Remove(GraphNode) |
Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection. |
Remove(GraphNodeId) |
Remove the specified node |
Remove(IEnumerable<GraphNode>) |
Remove all the nodes in the given set. |
Remove(String) |
Remove the specified node |
Remove(GraphNode, GraphNode) |
Remove the specified node |
Remove(GraphNode)
Removes the first occurrence of a specific object from the System.Collections.Generic.ICollection.
public:
virtual bool Remove(Microsoft::VisualStudio::GraphModel::GraphNode ^ item);
public bool Remove (Microsoft.VisualStudio.GraphModel.GraphNode item);
abstract member Remove : Microsoft.VisualStudio.GraphModel.GraphNode -> bool
override this.Remove : Microsoft.VisualStudio.GraphModel.GraphNode -> bool
Public Function Remove (item As GraphNode) As Boolean
Parameters
- item
- GraphNode
The object to remove from the System.Collections.Generic.ICollection.
Returns
True if item was successfully removed from the System.Collections.Generic.ICollection; otherwise, false. This method also returns false if item is not found in the original System.Collections.Generic.ICollection.
Implements
Applies to
Remove(GraphNodeId)
Remove the specified node
public:
Microsoft::VisualStudio::GraphModel::GraphNode ^ Remove(Microsoft::VisualStudio::GraphModel::GraphNodeId ^ id);
public Microsoft.VisualStudio.GraphModel.GraphNode Remove (Microsoft.VisualStudio.GraphModel.GraphNodeId id);
member this.Remove : Microsoft.VisualStudio.GraphModel.GraphNodeId -> Microsoft.VisualStudio.GraphModel.GraphNode
Public Function Remove (id As GraphNodeId) As GraphNode
Parameters
- id
- GraphNodeId
The Id of the node to remove
Returns
The Node removed, or null if it does not exist
Applies to
Remove(IEnumerable<GraphNode>)
Remove all the nodes in the given set.
public:
void Remove(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ nodes);
public void Remove (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> nodes);
member this.Remove : seq<Microsoft.VisualStudio.GraphModel.GraphNode> -> unit
Public Sub Remove (nodes As IEnumerable(Of GraphNode))
Parameters
- nodes
- IEnumerable<GraphNode>
The set of nodes to remove. This argument can be the result of a Get method.
Applies to
Remove(String)
Remove the specified node
public:
Microsoft::VisualStudio::GraphModel::GraphNode ^ Remove(System::String ^ id);
public Microsoft.VisualStudio.GraphModel.GraphNode Remove (string id);
member this.Remove : string -> Microsoft.VisualStudio.GraphModel.GraphNode
Public Function Remove (id As String) As GraphNode
Parameters
- id
- String
The Id of the node to remove
Returns
The Node removed, or null if it does not exist
Applies to
Remove(GraphNode, GraphNode)
Remove the specified node
public:
bool Remove(Microsoft::VisualStudio::GraphModel::GraphNode ^ node, [Runtime::InteropServices::Out] Microsoft::VisualStudio::GraphModel::GraphNode ^ % resultNode);
public bool Remove (Microsoft.VisualStudio.GraphModel.GraphNode node, out Microsoft.VisualStudio.GraphModel.GraphNode resultNode);
member this.Remove : Microsoft.VisualStudio.GraphModel.GraphNode * GraphNode -> bool
Public Function Remove (node As GraphNode, ByRef resultNode As GraphNode) As Boolean
Parameters
- node
- GraphNode
The Node to remove
- resultNode
- GraphNode
The Node that was removed
Returns
The Node removed, or null if it does not exist