[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.CanRemoveRange

CanRemoveRange Method

CanRemoveRange<T>(IDataCollection<T>, int, int)

Determines whether the items at the specified index can be removed from the collection.

Declaration
[UnconditionalSuppressMessage("Trimming", "IL2075", Justification = "The members of ISupportRangeEditing<> class were explicitly annotated so this method can use them safely.")]
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, typeof(ISupportRangeEditing<>))]
public static bool CanRemoveRange<T>(this IDataCollection<T> dataCollection, int index, int count) where T : class?
<UnconditionalSuppressMessage("Trimming", "IL2075", Justification:="The members of ISupportRangeEditing<> class were explicitly annotated so this method can use them safely.")>
<DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, GetType(ISupportRangeEditing(Of )))>
Public Shared Function CanRemoveRange(Of T As Class)(dataCollection As IDataCollection(Of T), index As Integer, count As Integer) As Boolean
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

int index

The index of the item that would be removed.

int count

The number of items to be removed.

Returns
Type Description
bool
Type Parameters
Name Description
T