Represents a not allowed server header error

The following tables list the members exposed by the NotAllowedServerHeaderException type.

Public Constructors

 

Name

Description

Public constructor Supported by the .NET Compact Framework.

NotAllowedServerHeaderException

(Overloaded) Initializes a new instance of the NotAllowedServerHeaderException class.

Top

Public Properties

 

Name

Description

Public property

Data

Gets a collection of key/value pairs that provide additional user-defined information about the exception. (inherited from Exception).

Public property

ErrorCode

Gets the HRESULT of the error. (inherited from ExternalException).

Public property

HResult

Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (inherited from Exception).

Public property

HelpLink

Gets or sets a link to the help file associated with this exception. (inherited from Exception).

Public property

InnerException

Gets the Exception instance that caused the current exception. (inherited from Exception).

Public property

Message

Gets a message that describes the current exception. (inherited from Exception).

Public property

Source

Gets or sets the name of the application or the object that causes the error. (inherited from Exception).

Public property

StackTrace

Gets a string representation of the immediate frames on the call stack. (inherited from Exception).

Public property

TargetSite

Gets the method that throws the current exception. (inherited from Exception).

Public property

WebEventCode

Gets the event codes that are associated with the HTTP exception. (inherited from HttpException).

Top

Public Methods

 

Name

Description

Public method Static

CreateFromLastError

Creates a new HttpException exception based on the error code that is returned from the Win32 API GetLastError() method. (inherited from HttpException).

Public method

Equals

(Overloaded) Determines whether the specified Object is equal to the current Object. (inherited from Object).

Public method

GetBaseException

When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (inherited from Exception).

Public method

GetHashCode

Serves as a hash function for a particular type. (inherited from Object).

Public method

GetHtmlErrorMessage

Gets the HTML error message to return to the client. (inherited from HttpException).

Public method

GetHttpCode

Gets the HTTP response status code to return to the client. (inherited from HttpException).

Public method

GetObjectData

Gets information about the exception and adds it to the SerializationInfo object. (inherited from HttpException).

Public method

GetType

(Overloaded) Gets the runtime type of the current instance. (inherited from Exception).

Public method Static

ReferenceEquals

Determines whether the specified Object instances are the same instance. (inherited from Object).

Public method

ToString

Returns a string that contains the HRESULT of the error. (inherited from ExternalException).

Top

Protected Methods

 

Name

Description

Protected method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).

Protected method

MemberwiseClone

Creates a shallow copy of the current Object. (inherited from Object).

Top

Protected Events

 

Name

Description

Protected event

SerializeObjectState

Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (inherited from Exception).

Top

See Also