Sugerir traducción
 
Otros han sugerido:

progress indicator
No hay más sugerencias.
Evaluar y enviar comentarios
Contraer todo/Expandir todo Contraer todo
Ver contenido:  en paraleloVer contenido: en paralelo
.NET Framework Class Library
DataView..::.AllowDelete Property

Sets or gets a value that indicates whether deletes are allowed.

Namespace:  System.Data
Assembly:  System.Data (in System.Data.dll)
Visual Basic
Public Property AllowDelete As Boolean
    Get
    Set
C#
public bool AllowDelete { get; set; }
Visual C++
public:
property bool AllowDelete {
    bool get ();
    void set (bool value);
}
F#
member AllowDelete : bool with get, set

Property Value

Type: System..::.Boolean
true, if deletes are allowed; otherwise, false.

The following example checks the AllowDelete property before deleting a DataRow from a DataView.

Visual Basic
Private Sub CheckAllowDelete(rowToDelete As DataRow)
    Dim view As DataView = New DataView(DataSet1.Tables("Suppliers"))
    If view.AllowDelete Then
    rowToDelete.Delete()
    End If
End Sub
C#
private void CheckAllowDelete(DataRow rowToDelete)
{
    DataView view = new DataView(DataSet1.Tables["Suppliers"]);
    if (view.AllowDelete)
        rowToDelete.Delete();
}

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Biblioteca de clases de .NET Framework
DataView..::.AllowDelete (Propiedad)

Establece u obtiene un valor que indica si se permite eliminar.

Espacio de nombres:  System.Data
Ensamblado:  System.Data (en System.Data.dll)
Visual Basic
Public Property AllowDelete As Boolean
    Get
    Set
C#
public bool AllowDelete { get; set; }
Visual C++
public:
property bool AllowDelete {
    bool get ();
    void set (bool value);
}
F#
member AllowDelete : bool with get, set

Valor de propiedad

Tipo: System..::.Boolean
true si se permiten eliminaciones; en caso contrario, false.

En el ejemplo siguiente se comprueba la propiedad AllowDelete antes de eliminar un DataRow de un DataView.

Visual Basic
Private Sub CheckAllowDelete(rowToDelete As DataRow)
    Dim view As DataView = New DataView(DataSet1.Tables("Suppliers"))
    If view.AllowDelete Then
    rowToDelete.Delete()
    End If
End Sub
C#
private void CheckAllowDelete(DataRow rowToDelete)
{
    DataView view = new DataView(DataSet1.Tables["Suppliers"]);
    if (view.AllowDelete)
        rowToDelete.Delete();
}

.NET Framework

Compatible con: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Compatible con: 4, 3.5 SP1

Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2

.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
Contenido de la comunidad   ¿Qué es Community Content?
Agregar contenido nuevo RSS  Anotaciones
Processing
© 2012 Microsoft. Reservados todos los derechos. Términos de uso | Marcas Registradas | Privacidad
Page view tracker