LinqDataSource.Delete(IDictionary, IDictionary) 메서드

정의

삭제 작업을 수행합니다.

public:
 int Delete(System::Collections::IDictionary ^ keys, System::Collections::IDictionary ^ oldValues);
public int Delete (System.Collections.IDictionary keys, System.Collections.IDictionary oldValues);
member this.Delete : System.Collections.IDictionary * System.Collections.IDictionary -> int
Public Function Delete (keys As IDictionary, oldValues As IDictionary) As Integer

매개 변수

keys
IDictionary

삭제할 레코드의 행 키 값입니다.

oldValues
IDictionary

데이터 충돌을 감지하기 위해 계산하는 행 값입니다.

반환

삭제 작업의 영향을 받는 레코드의 수입니다.

설명

일반적으로 코드에서 메서드를 Delete 호출할 필요가 없습니다. 데이터 바인딩된 컨트롤에서 컨트롤을 LinqDataSource 사용하는 경우 사용자가 레코드를 삭제하는 작업을 수행할 때 데이터 바인딩된 컨트롤이 메서드를 자동으로 호출 Delete 합니다. 데이터를 삭제하기 위한 고유한 프로세스를 만들려는 경우 메서드를 명시적으로 호출 Delete 합니다. 예를 들어 데이터 바인딩된 컨트롤 외부의 Delete 이벤트를 기반으로 레코드를 삭제하려는 경우 메서드를 호출할 수 있습니다.

적용 대상