ObjectDataSourceView.OnObjectCreated(ObjectDataSourceEventArgs) 메서드

정의

ObjectCreated 속성에 의해 식별되는 개체의 인스턴스를 ObjectDataSourceView가 만든 후에 TypeName 이벤트를 발생시킵니다.

protected:
 virtual void OnObjectCreated(System::Web::UI::WebControls::ObjectDataSourceEventArgs ^ e);
protected virtual void OnObjectCreated (System.Web.UI.WebControls.ObjectDataSourceEventArgs e);
abstract member OnObjectCreated : System.Web.UI.WebControls.ObjectDataSourceEventArgs -> unit
override this.OnObjectCreated : System.Web.UI.WebControls.ObjectDataSourceEventArgs -> unit
Protected Overridable Sub OnObjectCreated (e As ObjectDataSourceEventArgs)

매개 변수

e
ObjectDataSourceEventArgs

이벤트 데이터가 포함된 ObjectDataSourceEventArgs입니다.

설명

합니다 OnObjectCreated 데이터 작업을 수행 하려면 식별 되는 메서드가 아닌 경우에 메서드가 호출 되 static (Shared Visual Basic에서).

이벤트가 발생하면 대리자를 통해 이벤트 처리기가 호출됩니다. 자세한 내용은 ObjectCreating를 참조하세요.

또한 OnObjectCreated 메서드를 사용하면 파생 클래스가 대리자를 연결하지 않고도 이벤트를 처리할 수 있습니다. 이는 파생 클래스에서 이벤트를 처리하는 기본 방법입니다.

상속자 참고

재정의 하는 경우는 OnObjectCreated(ObjectDataSourceEventArgs) 파생된 클래스에서 메서드를 호출 해야 합니다 OnObjectCreated(ObjectDataSourceEventArgs) 대리자를 등록 하는 기본 클래스의 메서드는 이벤트를 받도록 합니다.

적용 대상

추가 정보