'response.clear()'删除内容和标题?

Rae*_*leh 4 asp.net response c#-4.0

我需要知道是否Response.Clear()只是清除内容还是删除标题?换句话说,如果我使用Response.Clear(),我是否还需要使用Response.ClearHeader()

Pra*_*nav 7

作为MSDN SAYS

Clear方法删除任何缓冲的HTML输出.但是,Clear方法仅删除响应体; 它不会删除响应头.

清除标题使用 Response.ClearHeaders();