DataView.AllowDelete Propiedad
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Obtiene o establece un valor que indica si se permiten las eliminaciones.
public:
property bool AllowDelete { bool get(); void set(bool value); };
public bool AllowDelete { get; set; }
[System.Data.DataSysDescription("DataViewAllowDeleteDescr")]
public bool AllowDelete { get; set; }
member this.AllowDelete : bool with get, set
[<System.Data.DataSysDescription("DataViewAllowDeleteDescr")>]
member this.AllowDelete : bool with get, set
Public Property AllowDelete As Boolean
true
si se permiten las eliminaciones; en caso contrario, false
.
- Atributos
En el ejemplo siguiente se comprueba la AllowDelete propiedad antes de eliminar de DataRow .DataView
private void CheckAllowDelete(DataRow rowToDelete)
{
DataView view = new DataView(DataSet1.Tables["Suppliers"]);
if (view.AllowDelete)
rowToDelete.Delete();
}
Private Sub CheckAllowDelete(rowToDelete As DataRow)
Dim view As New DataView(DataSet1.Tables("Suppliers"))
If view.AllowDelete Then
rowToDelete.Delete()
End If
End Sub
Producto | Versiones |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
Comentarios de .NET
.NET es un proyecto de código abierto. Selecciona un vínculo para proporcionar comentarios: