[]
Determines whether the item at the specified index can be removed from the collection.
[UnconditionalSuppressMessage("Trimming", "IL2075", Justification = "The members of ISupportEditing<> class were explicitly annotated so this method can use them safely.")]
[DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, typeof(ISupportEditing<>))]
public static bool CanRemove<T>(this IDataCollection<T> dataCollection, int index) where T : class?
<UnconditionalSuppressMessage("Trimming", "IL2075", Justification:="The members of ISupportEditing<> class were explicitly annotated so this method can use them safely.")>
<DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, GetType(ISupportEditing(Of )))>
Public Shared Function CanRemove(Of T As Class)(dataCollection As IDataCollection(Of T), index As Integer) As Boolean
| Type | Name | Description |
|---|---|---|
| IDataCollection<T> | dataCollection | The data collection. |
| int | index | The index of the item that would be removed. |
| Type | Description |
|---|---|
| bool |
| Name | Description |
|---|---|
| T |