ActivityCollection.ICollection<Activity>.Remove(Activity) 메서드

정의

에서 특정 개체의 첫 번째 항목을 제거합니다 ICollection<T>.

 virtual bool System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.Remove(System::Workflow::ComponentModel::Activity ^ item) = System::Collections::Generic::ICollection<System::Workflow::ComponentModel::Activity ^>::Remove;
bool ICollection<Activity>.Remove(System.Workflow.ComponentModel.Activity item);
abstract member System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.Remove : System.Workflow.ComponentModel.Activity -> bool
override this.System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.Remove : System.Workflow.ComponentModel.Activity -> bool
Function Remove (item As Activity) As Boolean Implements ICollection(Of Activity).Remove

매개 변수

item
Activity

에서 제거할 개체입니다 ICollection<T>.

반품

가 성공적으로 제거되었으면 이고 , 그렇지 않으면 . 또한 이 메서드는 원래 false메서드에서 찾을 수 없는 경우에도 item 반환 ICollection<T> 합니다.

구현

예외

읽기 ICollection 전용입니다.

설명

구현은 개체의 같음을 결정하는 방법에 따라 달라질 수 있습니다. 예를 들어 List<T> 사용자는 DefaultDictionary<TKey,TValue> 키를 비교하는 데 사용할 구현을 IComparer<T> 지정할 수 있습니다.

목록과 같은 연속 요소 컬렉션에서 제거된 요소를 따르는 요소가 위로 이동하여 비워진 지점을 차지합니다. 컬렉션이 인덱싱되면 이동되는 요소의 인덱스도 업데이트됩니다. 이 동작은 해시 테이블과 같이 요소가 개념적으로 버킷으로 그룹화되는 컬렉션에는 적용되지 않습니다.

적용 대상