包含 GraphNodeIds 列表的。这可以被已存储在 GraphNodeId 的 .Value 中。创建后这是一个不可变的列表。我们选择使用抽象类,原因是此类无法识别需要将列表序列化到字符串的格式化。
派生类将对此有所了解。
继承层次结构
System.Object
Microsoft.VisualStudio.GraphModel.GraphNodeIdCollection
命名空间: Microsoft.VisualStudio.GraphModel
程序集: Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)
语法
声明
Public Class GraphNodeIdCollection _
Implements IEnumerable(Of GraphNodeId), IEnumerable, _
IComparable
public class GraphNodeIdCollection : IEnumerable<GraphNodeId>,
IEnumerable, IComparable
public ref class GraphNodeIdCollection : IEnumerable<GraphNodeId^>,
IEnumerable, IComparable
type GraphNodeIdCollection =
class
interface IEnumerable<GraphNodeId>
interface IEnumerable
interface IComparable
end
public class GraphNodeIdCollection implements IEnumerable<GraphNodeId>, IEnumerable, IComparable
GraphNodeIdCollection 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
GraphNodeIdCollection | 构造 GraphNodeIdCollection。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
HomogeneousElements | 数组元素是否是同类(数组项名称全部相同不需要重复,即 .. 名称=[item1、item2、item3])或异类 - 例如(即 Name1=item1、Name2=item2、Name3=item3) |
![]() |
Item | |
![]() |
Length | 获取列表中的项数 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
CompareTo | |
![]() |
Equals | 比较这些列表中的两个以查看所有项是否等效。 它假定项目将在列表内的顺序相同。 这是性能优化,需要对方法论据,不同的顺序表示不同的重载 (重写 Object.Equals(Object)。) |
![]() |
Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) |
![]() |
GetHashCode | 计算此集合的哈希代码并对其进行缓存 (重写 Object.GetHashCode()。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
GetValueByName<T> | 从匹配名称的第一个嵌入 GraphNodeId 中获取值。 |
![]() |
MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) |
![]() |
ToString | 获取作为字符串的 GraphNodeId 集合。 (重写 Object.ToString()。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
IEnumerable<GraphNodeId>.GetEnumerator | |
![]() ![]() |
IEnumerable.GetEnumerator | 获取我们的“枚举器”。这样可防止直接访问 _array |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。