BindingGroup.CancelEdit 메서드

정의

편집 트랜잭션을 끝내고 보류 중인 변경 내용을 삭제합니다.

public:
 void CancelEdit();
public void CancelEdit ();
member this.CancelEdit : unit -> unit
Public Sub CancelEdit ()

예제

다음 예제에서는 CancelEdit 보류 중인 변경 내용 및 다음 호출을 삭제 하려면 BeginEdit 소스를 다시 편집할 준비를 합니다.

private void Cancel_Click(object sender, RoutedEventArgs e)
{
    // Cancel the pending changes and begin a new edit transaction.
    stackPanel1.BindingGroup.CancelEdit();
    stackPanel1.BindingGroup.BeginEdit();
}
Private Sub Cancel_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    ' Cancel the pending changes and begin a new edit transaction.
    stackPanel1.BindingGroup.CancelEdit()
    stackPanel1.BindingGroup.BeginEdit()
End Sub

설명

이 메서드는 소스를입니다. 원본 개체를 계속할 수 있는 경우 보류 중인 변경 내용을 취소 하 고 편집 트랜잭션을 종료 시킵니다. 다음 메서드는 저장 된 원본 값을 사용 하 여 대상 속성을 업데이트 합니다.

각 개체에 대해 Items 구현 하는 IEditableObject, CancelEdit 호출 IEditableObject.CancelEdit

적용 대상