SqlDataSourceStatusEventArgs.AffectedRows 속성

정의

데이터베이스 작업의 영향을 받은 행 수를 가져옵니다.

public:
 property int AffectedRows { int get(); };
public int AffectedRows { get; }
member this.AffectedRows : int
Public ReadOnly Property AffectedRows As Integer

속성 값

Int32

데이터베이스 작업의 영향을 받은 행 수입니다. 기본값은 -1입니다.

설명

모든 작업 작업에 의해 영향을 받는 행 수를 반환 합니다. AffectedRows 속성이 반환 값으로 동일한 값을 Update, Insert, 및 Delete 메서드.

경우는 Select 메서드가 호출 되 고 데이터 원본이 DataReader 모드, 반환 값은 항상에서 0입니다.

적용 대상

추가 정보