Control.BindingContainer Control.BindingContainer Control.BindingContainer Control.BindingContainer Property

定義

取得包含了此控制項之資料繫結的控制項。Gets the control that contains this control's data binding.

public:
 property System::Web::UI::Control ^ BindingContainer { System::Web::UI::Control ^ get(); };
[System.ComponentModel.Bindable(false)]
[System.ComponentModel.Browsable(false)]
public System.Web.UI.Control BindingContainer { get; }
member this.BindingContainer : System.Web.UI.Control
Public ReadOnly Property BindingContainer As Control

屬性值

Control,包含此控制項的資料繫結。The Control that contains this control's data binding.

備註

BindingContainer屬性包含參考Control物件,包含目前控制項的資料繫結資訊。The BindingContainer property contains a reference to the Control object that contains the data-binding information for the current control.

BindingContainer屬性是相同NamingContainer屬性,但是當控制項是範本的一部分。The BindingContainer property is the same as the NamingContainer property, except when the control is part of a template. 在此情況下,BindingContainer屬性設定為Control定義範本。In that case, the BindingContainer property is set to the Control that defines the template.

適用於

另請參閱