DataView.AllowDelete DataView.AllowDelete DataView.AllowDelete DataView.AllowDelete Property

정의

삭제가 허용되는지 여부를 나타내는 값을 설정하거나 가져옵니다.Sets or gets a value that indicates whether deletes are allowed.

public:
 property bool AllowDelete { bool get(); void set(bool value); };
[System.Data.DataSysDescription("DataViewAllowDeleteDescr")]
public bool AllowDelete { get; set; }
member this.AllowDelete : bool with get, set
Public Property AllowDelete As Boolean

속성 값

삭제가 허용되면 true이고, 허용되지 않으면 false입니다.true, if deletes are allowed; otherwise, false.

예제

다음 예제에서는 검사는 AllowDelete 삭제 하기 전에 속성을 DataRow 에서 DataView합니다.The following example checks the AllowDelete property before deleting a DataRow from a 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

적용 대상

추가 정보