다음을 통해 공유


DataBoundControlAdapter.Control 속성

정의

이 컨트롤 어댑터와 연결된 DataBoundControl 개체에 대한 강력한 형식의 참조를 검색합니다.

protected:
 property System::Web::UI::WebControls::DataBoundControl ^ Control { System::Web::UI::WebControls::DataBoundControl ^ get(); };
protected System.Web.UI.WebControls.DataBoundControl Control { get; }
member this.Control : System.Web.UI.WebControls.DataBoundControl
Protected ReadOnly Property Control As DataBoundControl

속성 값

DataBoundControl가 연결된 DataBoundControlAdapter입니다.

예제

다음 코드 예제에서는 재정의 하는 방법을 보여 줍니다.는 Control 어댑터의 속성에서 파생 된 DataBoundControlAdapter 클래스. 에 대 한 강력한 형식의 참조를 반환 합니다 MyDataBound 제어 합니다.

// Returns a strongly-typed reference to the MyDataBound control.
public new MyDataBound Control
{
    get
    {
        return (MyDataBound)base.Control;
    }
}
' Returns a strongly-typed reference to the MyDataBound control.
Public Shadows ReadOnly Property Control() As MyDataBound
    Get
        Return CType(MyBase.Control, MyDataBound)
    End Get
End Property

설명

경우는 DataBoundControlAdapter 개체에 연결 되어를 DataBoundControl 컨트롤,.NET Framework 컨트롤 멤버 대신 특정 어댑터 멤버를 호출 합니다.

상속자 참고

클래스에서 DataBoundControlAdapter 상속하는 경우 예제 섹션과 같이 컨트롤의 강력한 형식의 인스턴스를 반환하는 속성을 최소한 구현 Control 해야 합니다.

적용 대상

추가 정보