DataBoundControlAdapter.Control 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이 컨트롤 어댑터와 연결된 개체에 대한 강력한 형식의 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 해야 합니다.