ArraySegment<T>.ICollection<T>.Clear ArraySegment<T>.ICollection<T>.Clear ArraySegment<T>.ICollection<T>.Clear Method

定义

从数组段中移除所有项。Removes all items from the array segment.

 virtual void System.Collections.Generic.ICollection<T>.Clear() = System::Collections::Generic::ICollection<T>::Clear;
void ICollection<T>.Clear ();
Sub Clear () Implements ICollection(Of T).Clear

实现

异常

数组段是只读的。The array segment is read-only.

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 ArraySegment<T> 实例被强制转换为 ICollection<T> 接口时使用。It can be used only when the ArraySegment<T> instance is cast to an ICollection<T> interface.

适用于