ReservationCollection.Contains(Int64) 方法

定义

确定是否已生成指定大小的预留。Determines whether a reservation of the specified size has been made. 无法继承此方法。This method cannot be inherited.

public:
 virtual bool Contains(long size);
public bool Contains (long size);
abstract member Contains : int64 -> bool
override this.Contains : int64 -> bool
Public Function Contains (size As Long) As Boolean

参数

size
Int64

要在集合中查找的大小。The size to locate in the collection.

返回

Boolean

如果已生成至少一个指定大小的预留,则为 true;否则为 falsetrue if at least one reservation of the specified size has been made; otherwise, false.

实现

例外

该方法是在序列已释放之后调用的。The method was called after the sequence has been disposed of.

没有足够的内存来继续执行该程序。There is not enough memory to continue the execution of the program.

操作系统拒绝了对指定的日志存储区的访问。Access for the specified log store is denied by the operating system.

适用于