NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HttpResponse.AppendHeader

Adds an HTTP header to the output stream.

[Visual Basic]
Public Sub AppendHeader( _
   ByVal name As String, _
   ByVal value As String _
)
[C#]
public void AppendHeader(
   string name,
   string value
);
[C++]
public: void AppendHeader(
   String* name,
   String* value
);
[JScript]
public function AppendHeader(
   name : String,
   value : String
);

Parameters

name
An HTTP header name.
value
String to append to header.

Remarks

All cached headers, including those set by AppendHeader, will be deleted whenever the cache object model is next used. This preserves the hierarchy of restrictiveness and allows setting the headers late. Consider the case where pagelet controls are used by the current page. If those controls have conflicting cache directives, the most conservative policy is used. For example, if one control wants private cache policy(no shared caches) and a later control wants public cache policy, cache policy becomes private so that information isn't cached unintentionally.

See Also

HttpResponse Class | HttpResponse Members | System.Web Namespace