HttpParseException Oluşturucular

Tanım

HttpParseException sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

HttpParseException()

HttpParseException sınıfının yeni bir örneğini başlatır.

HttpParseException(String)

Belirtilen hata iletisiyle sınıfının yeni bir örneğini HttpParseException başlatır.

HttpParseException(String, Exception)

Sınıfın HttpParseException yeni bir örneğini belirtilen bir hata iletisi ve iç öğesine başvuru ile başlatır.

HttpParseException(String, Exception, String, String, Int32)

Derlenen kaynak kodu ve özel durumun oluştuğu satır numarası hakkında belirli bilgilerle sınıfının yeni bir örneğini HttpParseException başlatır.

HttpParseException()

HttpParseException sınıfının yeni bir örneğini başlatır.

public:
 HttpParseException();
public HttpParseException ();
Public Sub New ()

Şunlara uygulanır

HttpParseException(String)

Belirtilen hata iletisiyle sınıfının yeni bir örneğini HttpParseException başlatır.

public:
 HttpParseException(System::String ^ message);
public HttpParseException (string message);
new System.Web.HttpParseException : string -> System.Web.HttpParseException
Public Sub New (message As String)

Parametreler

message
String

Hatanın ne zaman oluştuğunun belirtilmesi için özel durum iletisi.

Örnekler

Aşağıdaki örnekte oluşturucunun kullanımı gösterilmektedir HttpException . Eksiksiz bir çalışma kodu örneği için genel bakış konusuna HttpParseException bakın.

throw new HttpParseException("This custom HtmlSelect control" +                                                  "requires child elements of the form \"MyCustomOption\"");
Throw New HttpParseException("This custom HtmlSelect control" & _ 
         "requires child elements of the form ""MyCustomOption""")

Şunlara uygulanır

HttpParseException(String, Exception)

Sınıfın HttpParseException yeni bir örneğini belirtilen bir hata iletisi ve iç öğesine başvuru ile başlatır.

public:
 HttpParseException(System::String ^ message, Exception ^ innerException);
public HttpParseException (string message, Exception innerException);
new System.Web.HttpParseException : string * Exception -> System.Web.HttpParseException
Public Sub New (message As String, innerException As Exception)

Parametreler

message
String

Hatanın ne zaman oluştuğunun belirtilmesi için özel durum iletisi.

innerException
Exception

Geçerli özel durumun nedeni olan özel durum. innerException parametresi değilsenull, geçerli özel durum iç özel durumu işleyen bir catch blokta oluşturulur.

Şunlara uygulanır

HttpParseException(String, Exception, String, String, Int32)

Derlenen kaynak kodu ve özel durumun oluştuğu satır numarası hakkında belirli bilgilerle sınıfının yeni bir örneğini HttpParseException başlatır.

public:
 HttpParseException(System::String ^ message, Exception ^ innerException, System::String ^ virtualPath, System::String ^ sourceCode, int line);
public HttpParseException (string message, Exception innerException, string virtualPath, string sourceCode, int line);
new System.Web.HttpParseException : string * Exception * string * string * int -> System.Web.HttpParseException
Public Sub New (message As String, innerException As Exception, virtualPath As String, sourceCode As String, line As Integer)

Parametreler

message
String

Hatanın ne zaman oluştuğunun belirtilmesi için özel durum iletisi.

innerException
Exception

Geçerli özel durumun nedeni olan özel durum. nulldeğilseinnerException, geçerli özel durum iç özel durumu işleyen bir catch blokta oluşturulur.

virtualPath
String

Özel durumun sanal yolu.

sourceCode
String

Özel durum oluştuğunda derlenen kaynak kodu.

line
Int32

Özel durumun oluştuğu satır numarası.

Şunlara uygulanır