Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
91 lines (83 sloc) 5.83 KB
<Type Name="IScriptControl" FullName="System.Web.UI.IScriptControl">
<TypeSignature Language="C#" Value="public interface IScriptControl" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract IScriptControl" />
<TypeSignature Language="DocId" Value="T:System.Web.UI.IScriptControl" />
<TypeSignature Language="VB.NET" Value="Public Interface IScriptControl" />
<TypeSignature Language="C++ CLI" Value="public interface class IScriptControl" />
<TypeSignature Language="F#" Value="type IScriptControl = interface" />
<AssemblyInfo>
<AssemblyName>System.Web.Extensions</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces />
<Docs>
<summary>Defines methods that ASP.NET server controls must implement to define ECMAScript (JavaScript) resources in AJAX-enabled applications.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When implemented by a class, the methods of the <xref:System.Web.UI.IScriptControl> interface provide references to script libraries that define client components and script descriptors that represent instances of client types. Implement this interface in custom server controls that will include script control functionality.
For more information, see [Adding Client Capabilities to a Web Server Control](https://msdn.microsoft.com/library/1d365cbe-1bde-4cef-9fe7-2cd04d3cbdea).
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="GetScriptDescriptors">
<MemberSignature Language="C#" Value="public System.Collections.Generic.IEnumerable&lt;System.Web.UI.ScriptDescriptor&gt; GetScriptDescriptors ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Collections.Generic.IEnumerable`1&lt;class System.Web.UI.ScriptDescriptor&gt; GetScriptDescriptors() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.IScriptControl.GetScriptDescriptors" />
<MemberSignature Language="VB.NET" Value="Public Function GetScriptDescriptors () As IEnumerable(Of ScriptDescriptor)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; System::Collections::Generic::IEnumerable&lt;System::Web::UI::ScriptDescriptor ^&gt; ^ GetScriptDescriptors();" />
<MemberSignature Language="F#" Value="abstract member GetScriptDescriptors : unit -&gt; seq&lt;System.Web.UI.ScriptDescriptor&gt;" Usage="iScriptControl.GetScriptDescriptors " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Extensions</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.Generic.IEnumerable&lt;System.Web.UI.ScriptDescriptor&gt;</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Gets a collection of script descriptors that represent ECMAScript (JavaScript) client components.</summary>
<returns>An <see cref="T:System.Collections.IEnumerable" /> collection of <see cref="T:System.Web.UI.ScriptDescriptor" /> objects.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Implement this method to define components, behaviors, or client controls from the Microsoft Ajax Library that the server control requires. This method enables you to pass declaratively specified parameters to Microsoft Ajax Library functions.
To use this method, you must also implement the abstract <xref:System.Web.UI.ScriptDescriptor> class.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="GetScriptReferences">
<MemberSignature Language="C#" Value="public System.Collections.Generic.IEnumerable&lt;System.Web.UI.ScriptReference&gt; GetScriptReferences ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Collections.Generic.IEnumerable`1&lt;class System.Web.UI.ScriptReference&gt; GetScriptReferences() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.IScriptControl.GetScriptReferences" />
<MemberSignature Language="VB.NET" Value="Public Function GetScriptReferences () As IEnumerable(Of ScriptReference)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; System::Collections::Generic::IEnumerable&lt;System::Web::UI::ScriptReference ^&gt; ^ GetScriptReferences();" />
<MemberSignature Language="F#" Value="abstract member GetScriptReferences : unit -&gt; seq&lt;System.Web.UI.ScriptReference&gt;" Usage="iScriptControl.GetScriptReferences " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Extensions</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.Generic.IEnumerable&lt;System.Web.UI.ScriptReference&gt;</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Gets a collection of <see cref="T:System.Web.UI.ScriptReference" /> objects that define script resources that the control requires.</summary>
<returns>An <see cref="T:System.Collections.IEnumerable" /> collection of <see cref="T:System.Web.UI.ScriptReference" /> objects.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Implement this method to define custom script library dependencies that the server control requires, such as scripts in a Scripts folder of the current Web application, or resources in an assembly. Scripts from the Microsoft Ajax Library do not have to be registered in this manner.
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.