InvalidCredentialException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 InvalidCredentialException 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| InvalidCredentialException() |
初始化没有消息的 InvalidCredentialException 类的新实例。 |
| InvalidCredentialException(String) |
使用指定的消息初始化类的新实例 InvalidCredentialException 。 |
| InvalidCredentialException(SerializationInfo, StreamingContext) |
已过时.
从类的InvalidCredentialException指定实例初始化类的新实例SerializationInfoStreamingContext。 |
| InvalidCredentialException(String, Exception) |
使用指定的消息和内部异常初始化类的新实例 InvalidCredentialException 。 |
InvalidCredentialException()
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
初始化没有消息的 InvalidCredentialException 类的新实例。
public:
InvalidCredentialException();
public InvalidCredentialException();
Public Sub New ()
注解
此构造函数不执行任何操作。
适用于
InvalidCredentialException(String)
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
使用指定的消息初始化类的新实例 InvalidCredentialException 。
public:
InvalidCredentialException(System::String ^ message);
public InvalidCredentialException(string? message);
public InvalidCredentialException(string message);
new System.Security.Authentication.InvalidCredentialException : string -> System.Security.Authentication.InvalidCredentialException
Public Sub New (message As String)
参数
注解
此构造函数使用参数中的message文本初始化Message属性。
InnerException 属性设置为 null。
另请参阅
适用于
InvalidCredentialException(SerializationInfo, StreamingContext)
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
注意
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
从类的InvalidCredentialException指定实例初始化类的新实例SerializationInfoStreamingContext。
protected:
InvalidCredentialException(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
[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 InvalidCredentialException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
protected InvalidCredentialException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[<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.Security.Authentication.InvalidCredentialException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.Authentication.InvalidCredentialException
new System.Security.Authentication.InvalidCredentialException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Security.Authentication.InvalidCredentialException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)
参数
- serializationInfo
- SerializationInfo
包含 SerializationInfo 反序列化新 InvalidCredentialException 实例所需的信息的实例。
- streamingContext
- StreamingContext
实例 StreamingContext 。
- 属性
另请参阅
适用于
InvalidCredentialException(String, Exception)
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
- Source:
- AuthenticationException.cs
使用指定的消息和内部异常初始化类的新实例 InvalidCredentialException 。
public:
InvalidCredentialException(System::String ^ message, Exception ^ innerException);
public InvalidCredentialException(string? message, Exception? innerException);
public InvalidCredentialException(string message, Exception innerException);
new System.Security.Authentication.InvalidCredentialException : string * Exception -> System.Security.Authentication.InvalidCredentialException
Public Sub New (message As String, innerException As Exception)
参数
注解
此构造函数使用参数中的message文本初始化Message属性,并使用参数值初始化InnerException属性innerException。