IExtenderControl.GetScriptDescriptors(Control) 方法
定义
为控件注册 ScriptDescriptor 对象,并为该控件返回包含 ScriptDescriptor 对象的对象。Registers the ScriptDescriptor objects for the control and returns an object that contains the ScriptDescriptor objects for the control.
public:
System::Collections::Generic::IEnumerable<System::Web::UI::ScriptDescriptor ^> ^ GetScriptDescriptors(System::Web::UI::Control ^ targetControl);
public System.Collections.Generic.IEnumerable<System.Web.UI.ScriptDescriptor> GetScriptDescriptors (System.Web.UI.Control targetControl);
abstract member GetScriptDescriptors : System.Web.UI.Control -> seq<System.Web.UI.ScriptDescriptor>
Public Function GetScriptDescriptors (targetControl As Control) As IEnumerable(Of ScriptDescriptor)
参数
- targetControl
- Control
与扩展程序相关联的服务器控件。The server control that the extender is associated with.
返回
一个包含 IEnumerable 对象的 ScriptDescriptor 集合。An IEnumerable collection that contains ScriptDescriptor objects.