InternalRemove method
bool
InternalRemove(
- TComplexProperty? complexProperty
)
Remove specified complex property.
The complex property.
Implementation
bool InternalRemove(TComplexProperty? complexProperty) {
EwsUtilities.Assert(complexProperty != null,
"ComplexPropertyCollection.InternalRemove", "complexProperty is null");
if (this._items.remove(complexProperty)) {
complexProperty!.removeChangeEvent(this.ItemChanged);
if (!this._addedItems.contains(complexProperty)) {
this._removedItems.add(complexProperty);
} else {
this._addedItems.remove(complexProperty);
}
this._modifiedItems.remove(complexProperty);
this.Changed();
return true;
} else {
return false;
}
}