PasswordException 构造函数 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
实例化 PasswordException 类的新实例。
重载
| PasswordException() | 实例化 PasswordException 类的新实例。 | 
| PasswordException(String) | 用指定的错误消息实例化 PasswordException 类的新实例。 | 
| PasswordException(SerializationInfo, StreamingContext) | 
		已过时.
	 根据指定的 SerializationInfo 和 StreamingContext 实例初始化 PasswordException 类的新实例。 | 
| PasswordException(String, Exception) | 使用指定的错误消息和指定的嵌套异常实例化 PasswordException 类的新实例。 | 
PasswordException()
- Source:
- exceptions.cs
- Source:
- exceptions.cs
- Source:
- exceptions.cs
实例化 PasswordException 类的新实例。
public:
 PasswordException();public PasswordException ();Public Sub New ()注解
无参数构造函数初始化 类的新实例 PasswordException 。 属性 Message 初始化为系统提供的消息,用于描述错误。 此消息会考虑当前系统区域性。 将 InnerException 属性初始化为 null。
适用于
PasswordException(String)
- Source:
- exceptions.cs
- Source:
- exceptions.cs
- Source:
- exceptions.cs
用指定的错误消息实例化 PasswordException 类的新实例。
public:
 PasswordException(System::String ^ message);public PasswordException (string message);new System.DirectoryServices.AccountManagement.PasswordException : string -> System.DirectoryServices.AccountManagement.PasswordExceptionPublic Sub New (message As String)参数
- message
- String
错误消息的文本。
注解
实例 PasswordException 初始化时, Message 属性设置为 的值 message。 如果 message 为 null,则 Message 属性初始化为系统提供的消息。
适用于
PasswordException(SerializationInfo, StreamingContext)
- Source:
- exceptions.cs
- Source:
- exceptions.cs
- Source:
- exceptions.cs
注意
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
根据指定的 SerializationInfo 和 StreamingContext 实例初始化 PasswordException 类的新实例。
protected:
 PasswordException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);protected PasswordException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected PasswordException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);new System.DirectoryServices.AccountManagement.PasswordException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.AccountManagement.PasswordException[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.DirectoryServices.AccountManagement.PasswordException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.DirectoryServices.AccountManagement.PasswordExceptionProtected Sub New (info As SerializationInfo, context As StreamingContext)参数
- info
- SerializationInfo
SerializationInfo,包含序列化新的 PasswordException 所需的信息。
- context
- StreamingContext
StreamingContext,它包含与新的 PasswordException 关联的序列化流的源。
- 属性
适用于
PasswordException(String, Exception)
- Source:
- exceptions.cs
- Source:
- exceptions.cs
- Source:
- exceptions.cs
使用指定的错误消息和指定的嵌套异常实例化 PasswordException 类的新实例。
public:
 PasswordException(System::String ^ message, Exception ^ innerException);public PasswordException (string message, Exception innerException);new System.DirectoryServices.AccountManagement.PasswordException : string * Exception -> System.DirectoryServices.AccountManagement.PasswordExceptionPublic Sub New (message As String, innerException As Exception)参数
- message
- String
错误消息的文本。
- innerException
- Exception
嵌套异常。
注解
实例 PasswordException 初始化时, Message 将 属性设置为 的值 message ,将 InnerException 属性设置为 的值 innerException。 如果 message 为 null,则 Message 属性初始化为系统提供的消息。 初始化 InnerException 为 null。