HttpResponse.ClearContent 方法

定義

從緩衝區資料流清除所有內容輸出。Clears all content output from the buffer stream.

public:
 void ClearContent();
public void ClearContent ();
member this.ClearContent : unit -> unit
Public Sub ClearContent ()

範例

下列範例會從緩衝區資料流程清除所有內容。The following example clears all content from the buffer stream.

Response.ClearContent();
    
Response.ClearContent()
    

備註

ClearContent方法不會清除標頭資訊。The ClearContent method does not clear header information.

適用於

另請參閱