Control.BindingContainer 屬性

定義

取得包含了此控制項之資料繫結的控制項。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 屬性會設定為定義範本的 ControlIn that case, the BindingContainer property is set to the Control that defines the template.

適用於

另請參閱