Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (44 sloc) 3.43 KB
<Type Name="RepeaterItemEventHandler" FullName="System.Web.UI.WebControls.RepeaterItemEventHandler">
<TypeSignature Language="C#" Value="public delegate void RepeaterItemEventHandler(object sender, RepeaterItemEventArgs e);" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed RepeaterItemEventHandler extends System.MulticastDelegate" />
<TypeSignature Language="DocId" Value="T:System.Web.UI.WebControls.RepeaterItemEventHandler" />
<TypeSignature Language="VB.NET" Value="Public Delegate Sub RepeaterItemEventHandler(sender As Object, e As RepeaterItemEventArgs)" />
<TypeSignature Language="C++ CLI" Value="public delegate void RepeaterItemEventHandler(System::Object ^ sender, RepeaterItemEventArgs ^ e);" />
<TypeSignature Language="F#" Value="type RepeaterItemEventHandler = delegate of obj * RepeaterItemEventArgs -&gt; unit" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Delegate</BaseTypeName>
</Base>
<Parameters>
<Parameter Name="sender" Type="System.Object" />
<Parameter Name="e" Type="System.Web.UI.WebControls.RepeaterItemEventArgs" />
</Parameters>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Docs>
<param name="sender">The source of the event.</param>
<param name="e">A <see cref="T:System.Web.UI.WebControls.RepeaterItemEventArgs" /> that contains the event data.</param>
<summary>Represents the method that will handle the <see cref="E:System.Web.UI.WebControls.Repeater.ItemCreated" /> and <see cref="E:System.Web.UI.WebControls.Repeater.ItemDataBound" /> events of a <see cref="T:System.Web.UI.WebControls.Repeater" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When you create a <xref:System.Web.UI.WebControls.RepeaterItemEventHandler> delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see [Handling and Raising Events](~/docs/standard/events/index.md).
For more information about how to handle events, see [Handling and Raising Events](~/docs/standard/events/index.md).
## Examples
The following example demonstrates how to specify and code a handler for the <xref:System.Web.UI.WebControls.Repeater.ItemCreated> event of the <xref:System.Web.UI.WebControls.Repeater>. A new line of text indicating the item type is displayed whenever a <xref:System.Web.UI.WebControls.Repeater> item is created.
[!code-aspx-csharp[Classic RepeaterItemEventArgs Example#1](~/samples/snippets/csharp/VS_Snippets_WebNet/Classic RepeaterItemEventArgs Example/CS/sourcecs.aspx#1)]
[!code-aspx-vb[Classic RepeaterItemEventArgs Example#1](~/samples/snippets/visualbasic/VS_Snippets_WebNet/Classic RepeaterItemEventArgs Example/VB/sourcevb.aspx#1)]
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.Repeater" />
<altmember cref="T:System.Web.UI.WebControls.RepeaterItemEventArgs" />
<altmember cref="E:System.Web.UI.WebControls.Repeater.ItemCreated" />
<altmember cref="E:System.Web.UI.WebControls.Repeater.ItemDataBound" />
</Docs>
</Type>
You can’t perform that action at this time.