XamlException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the XamlException class.
Overloads
XamlException() |
Initializes a new instance of the XamlException class. The instance contains a system-supplied message that describes the error. |
XamlException(String) |
Initializes a new instance of the XamlException class. The instance contains a specified message that describes the error. |
XamlException(SerializationInfo, StreamingContext) |
Initializes a new instance of the XamlException class with serialized data. |
XamlException(String, Exception) |
Initializes a new instance of the XamlException class. The instance contains a specified error message and a reference to the inner exception that is the cause of this exception. |
XamlException(String, Exception, Int32, Int32) |
Initializes a new instance of the XamlException class. The instance contains a specified error message, inner exception, and line information. |
XamlException()
Initializes a new instance of the XamlException class. The instance contains a system-supplied message that describes the error.
public:
XamlException();
public XamlException ();
Public Sub New ()
Applies to
XamlException(String)
Initializes a new instance of the XamlException class. The instance contains a specified message that describes the error.
public:
XamlException(System::String ^ message);
public XamlException (string message);
new System.Xaml.XamlException : string -> System.Xaml.XamlException
Public Sub New (message As String)
Parameters
- message
- String
The message that describes the exception. The caller of this constructor must make sure that this string has been localized for the current system culture.
Applies to
XamlException(SerializationInfo, StreamingContext)
Initializes a new instance of the XamlException class with serialized data.
protected:
XamlException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XamlException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Xaml.XamlException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xaml.XamlException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The object that holds the serialized object data.
- context
- StreamingContext
The contextual information about the source or destination.
Exceptions
info
is null
.
Applies to
XamlException(String, Exception)
Initializes a new instance of the XamlException class. The instance contains a specified error message and a reference to the inner exception that is the cause of this exception.
public:
XamlException(System::String ^ message, Exception ^ innerException);
public XamlException (string message, Exception innerException);
new System.Xaml.XamlException : string * Exception -> System.Xaml.XamlException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The message that describes the exception. The caller of this constructor must make sure that this string has been localized for the current system culture.
- innerException
- Exception
The exception that is the cause of the current exception. If the innerException
parameter is not null
, the current exception is raised in a catch
block that handles the inner exception.
Remarks
An exception that is thrown because a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor; or it returns null
if the InnerException property does not provide the inner exception value to the constructor.
Applies to
XamlException(String, Exception, Int32, Int32)
Initializes a new instance of the XamlException class. The instance contains a specified error message, inner exception, and line information.
public:
XamlException(System::String ^ message, Exception ^ innerException, int lineNumber, int linePosition);
public XamlException (string message, Exception innerException, int lineNumber, int linePosition);
new System.Xaml.XamlException : string * Exception * int * int -> System.Xaml.XamlException
Public Sub New (message As String, innerException As Exception, lineNumber As Integer, linePosition As Integer)
Parameters
- message
- String
The message that describes the exception. The caller of this constructor must make sure that this string has been localized for the current system culture.
- innerException
- Exception
The exception that is the cause of the current exception.
- lineNumber
- Int32
The line number to report to debugging or to line information consumers.
- linePosition
- Int32
The line position to report to debugging or line information consumers.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기