ActivityCollection.ICollection<Activity>.Remove(Activity) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
에서 특정 개체의 첫 번째 항목을 제거합니다 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> 지정할 수 있습니다.
목록과 같은 연속 요소 컬렉션에서 제거된 요소를 따르는 요소가 위로 이동하여 비워진 지점을 차지합니다. 컬렉션이 인덱싱되면 이동되는 요소의 인덱스도 업데이트됩니다. 이 동작은 해시 테이블과 같이 요소가 개념적으로 버킷으로 그룹화되는 컬렉션에는 적용되지 않습니다.