MembershipPasswordException 构造函数

定义

初始化 MembershipPasswordException 类的新实例。

重载

MembershipPasswordException()

初始化 MembershipPasswordException 类的新实例。

MembershipPasswordException(String)

初始化 MembershipPasswordException 类的新实例,并将 Message 属性设置为所提供的 message

MembershipPasswordException(SerializationInfo, StreamingContext)

用提供的序列化信息和上下文初始化 MembershipPasswordException 类的新实例。

MembershipPasswordException(String, Exception)

初始化 MembershipPasswordException 类的新实例,并将 Message 属性设置为提供的 message,将 InnerException 属性设置为提供的 innerException

MembershipPasswordException()

初始化 MembershipPasswordException 类的新实例。

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

适用于

MembershipPasswordException(String)

初始化 MembershipPasswordException 类的新实例,并将 Message 属性设置为所提供的 message

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

参数

message
String

对异常原因的描述。

适用于

MembershipPasswordException(SerializationInfo, StreamingContext)

用提供的序列化信息和上下文初始化 MembershipPasswordException 类的新实例。

protected:
 MembershipPasswordException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected MembershipPasswordException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Web.Security.MembershipPasswordException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Web.Security.MembershipPasswordException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

包含有关所引发异常的序列化对象数据的 SerializationInfo

context
StreamingContext

StreamingContext,它包含关于源或目标的上下文信息。

适用于

MembershipPasswordException(String, Exception)

初始化 MembershipPasswordException 类的新实例,并将 Message 属性设置为提供的 message,将 InnerException 属性设置为提供的 innerException

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

参数

message
String

对异常原因的描述。

innerException
Exception

导致 MembershipPasswordException 的异常。

适用于