This documentation is archived and is not being maintained.

HttpResponse.SuppressContent Property

Gets or sets a value indicating whether to send HTTP content to the client.

[Visual Basic]
Public Property SuppressContent As Boolean
public bool SuppressContent {get; set;}
public: __property bool get_SuppressContent();
public: __property void set_SuppressContent(bool);
public function get SuppressContent() : Boolean;
public function set SuppressContent(Boolean);

Property Value

true to suppress output; otherwise, false.


The following example sets SuppressContent to true.

[Visual Basic] 
Response.SuppressContent = True

Response.SuppressContent = true;

Response->SuppressContent = true;

Response.SuppressContent = true


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpResponse Class | HttpResponse Members | System.Web Namespace