Files
linux-packaging-mono/mcs/class/System.Web/Documentation/en/System.Web/HttpResponseSubstitutionCallback.xml
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

32 lines
2.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<Type Name="HttpResponseSubstitutionCallback" FullName="System.Web.HttpResponseSubstitutionCallback">
<TypeSignature Language="C#" Value="public delegate string HttpResponseSubstitutionCallback(HttpContext context);" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Delegate</BaseTypeName>
</Base>
<Parameters>
<Parameter Name="context" Type="System.Web.HttpContext" />
</Parameters>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<param name="context">To be added.</param>
<value>To be added.</value>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="T:System.Web.HttpResponseSubstitutionCallback" /> delegate, in combination with the <see cref="M:System.Web.HttpResponse.WriteSubstitution(System.Web.HttpResponseSubstitutionCallback)" /> method, is used for rendering post-cache content for the <see cref="T:System.Web.UI.WebControls.Substitution" /> and <see cref="T:System.Web.UI.WebControls.AdRotator" /> controls.</para>
<para>For the <see cref="T:System.Web.UI.WebControls.Substitution" /> control, use the <see cref="P:System.Web.UI.WebControls.Substitution.MethodName" /> property to specify the name of the callback method to invoke when the <see cref="T:System.Web.UI.WebControls.Substitution" /> control executes. The callback method that you specify must be a static method on the page or on the user control that contains the <see cref="T:System.Web.UI.WebControls.Substitution" /> control. The signature for the callback method must match the signature for an <see cref="T:System.Web.HttpResponseSubstitutionCallback" /> delegate that takes an <see cref="T:System.Web.HttpContext" /> parameter and returns a string.</para>
<para>For the <see cref="T:System.Web.UI.WebControls.AdRotator" /> control, rendering is independent of the page caching unless an event handler is provided for the <see cref="E:System.Web.UI.WebControls.AdRotator.AdCreated" /> event. If no <see cref="E:System.Web.UI.WebControls.AdRotator.AdCreated" /> event handler is present, post-cache substitution is used to render the <see cref="T:System.Web.UI.WebControls.AdRotator" /> content.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Represents the method that handles post-cache substitution.</para>
</summary>
</Docs>
</Type>