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>에서 제거할 개체입니다.

반환

trueitem에서 제거되면 ICollection<T>이고, 그렇지 않으면 false입니다. 이 메서드는 false이 원래 item에 없는 경우에도 ICollection<T>를 반환합니다.

구현

예외

ICollection이 읽기 전용인 경우

설명

개체의 동일성을 결정하는 방법에 따라 다양한 구현이 가능합니다. 예를 들어 List<T>Default를 사용하는 반면 Dictionary<TKey,TValue>의 경우에는 사용자가 키를 비교하는 데 사용할 IComparer<T> 구현을 지정할 수 있습니다.

목록처럼 연속된 요소로 구성된 컬렉션에서는 제거된 요소 다음에 있는 요소를 위로 이동하여 빈 자리를 채웁니다. 컬렉션에 인덱스가 지정된 경우 이동되는 요소의 인덱스도 업데이트됩니다. 요소가 해시 테이블 같은 버킷으로 개념적으로 그룹화되어 있는 컬렉션에는 이러한 동작이 적용되지 않습니다.

적용 대상