편집

다음을 통해 공유


XamlDuplicateMemberException Constructors

Definition

Initializes a new instance of the XamlDuplicateMemberException class.

Overloads

XamlDuplicateMemberException()

Initializes a new instance of the XamlDuplicateMemberException class with a system-supplied message that describes the error.

XamlDuplicateMemberException(String)

Initializes a new instance of the XamlDuplicateMemberException class with a specified message that describes the error.

XamlDuplicateMemberException(SerializationInfo, StreamingContext)

Initializes a new instance of the XamlDuplicateMemberException class with serialized data.

XamlDuplicateMemberException(String, Exception)

Initializes a new instance of the XamlDuplicateMemberException class with a specified error message and a reference to the inner exception that is the cause of this exception.

XamlDuplicateMemberException(XamlMember, XamlType)

Initializes a new instance of the XamlDuplicateMemberException class with the relevant member and type information to report.

XamlDuplicateMemberException()

Initializes a new instance of the XamlDuplicateMemberException class with a system-supplied message that describes the error.

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

Applies to

XamlDuplicateMemberException(String)

Initializes a new instance of the XamlDuplicateMemberException class with a specified message that describes the error.

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

Parameters

message
String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Applies to

XamlDuplicateMemberException(SerializationInfo, StreamingContext)

Initializes a new instance of the XamlDuplicateMemberException class with serialized data.

protected:
 XamlDuplicateMemberException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected XamlDuplicateMemberException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Xaml.XamlDuplicateMemberException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Xaml.XamlDuplicateMemberException
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

XamlDuplicateMemberException(String, Exception)

Initializes a new instance of the XamlDuplicateMemberException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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

Parameters

message
String

The message that describes the exception. The caller of this constructor is required to ensure 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 as a direct result of 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 null if the InnerException property does not supply the inner exception value to the constructor.

Applies to

XamlDuplicateMemberException(XamlMember, XamlType)

Initializes a new instance of the XamlDuplicateMemberException class with the relevant member and type information to report.

public:
 XamlDuplicateMemberException(System::Xaml::XamlMember ^ member, System::Xaml::XamlType ^ type);
public XamlDuplicateMemberException (System.Xaml.XamlMember member, System.Xaml.XamlType type);
new System.Xaml.XamlDuplicateMemberException : System.Xaml.XamlMember * System.Xaml.XamlType -> System.Xaml.XamlDuplicateMemberException
Public Sub New (member As XamlMember, type As XamlType)

Parameters

member
XamlMember

The XAML member identifier to report.

type
XamlType

The XAML type identifier to report as the parent type.

Applies to