HttpCachePolicyWrapper.SetETag Method (String)

 

Sets the ETag HTTP header to the specified string.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public override void SetETag(
	string etag
)

Parameters

etag
Type: System.String

The text to use for the ETag header.

Exception Condition
ArgumentNullException

etag is null.

InvalidOperationException

The ETag header has already been set.

- or -

The SetETagFromFileDependencies method has already been called.

.NET Framework
Available since 3.5
Return to top
Show: