[This is preliminary documentation and is subject to change.]

Raises ItemChanging event

Namespace: Tools.CollectionsT.GenericT
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
protected virtual void OnItemChanging(
	ListWithEvents<(Of <(<'T>)>)>..::..CancelableItemIndexEventArgs e
)
Visual Basic
Protected Overridable Sub OnItemChanging ( _
	e As ListWithEvents<(Of <(<'T>)>)>..::..CancelableItemIndexEventArgs _
)
Visual C++
protected:
virtual void OnItemChanging(
	ListWithEvents<(Of <(<'T>)>)>..::..CancelableItemIndexEventArgs^ e
)
F#
abstract OnItemChanging : 
        e:ListWithEvents<(Of <(<'T>)>)>..::..CancelableItemIndexEventArgs -> unit 
override OnItemChanging : 
        e:ListWithEvents<(Of <(<'T>)>)>..::..CancelableItemIndexEventArgs -> unit 
JScript
protected function OnItemChanging(
	e : ListWithEvents<(Of <(<'T>)>)>..::..CancelableItemIndexEventArgs
)

Remarks

Note for inheritors: Alway call base class method OnItemChanging(ListWithEvents<(Of <<'(T>)>>)..::..CancelableItemIndexEventArgs) in order the event to be raised.

Do not change the content of the list in this method!

Exceptions

ExceptionCondition
System..::..OperationCanceledExceptionOperation is canceled in eventhandler and CancelError is true
System..::..ExceptionAny Exception can be thrown by event handler of the ItemChanging event -or- Any exception may be throw by OnRemoving(ICollection, Nullable<(Of <<'(Int32>)>>)) or OnAdding(ICollection, Nullable<(Of <<'(Int32>)>>), Boolean) when AllowItemCancel is true

See Also

Collapse/expand Version History

1.5.2