CommunicationException 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 CommunicationException class.
Overloads
CommunicationException() |
Initializes a new instance of the CommunicationException class. |
CommunicationException(String) |
Initializes a new instance of the CommunicationException class, using the specified message. |
CommunicationException(SerializationInfo, StreamingContext) |
Initializes a new instance of the CommunicationException class, using the specified serialization information and context objects. |
CommunicationException(String, Exception) |
Initializes a new instance of the CommunicationException class, using the specified message and the inner exception. |
CommunicationException()
- Source:
- CommunicationException.cs
- Source:
- CommunicationException.cs
- Source:
- CommunicationException.cs
Initializes a new instance of the CommunicationException class.
public:
CommunicationException();
public CommunicationException ();
Public Sub New ()
Applies to
CommunicationException(String)
- Source:
- CommunicationException.cs
- Source:
- CommunicationException.cs
- Source:
- CommunicationException.cs
Initializes a new instance of the CommunicationException class, using the specified message.
public:
CommunicationException(System::String ^ message);
public CommunicationException (string message);
new System.ServiceModel.CommunicationException : string -> System.ServiceModel.CommunicationException
Public Sub New (message As String)
Parameters
- message
- String
The description of the error condition.
Applies to
CommunicationException(SerializationInfo, StreamingContext)
- Source:
- CommunicationException.cs
- Source:
- CommunicationException.cs
- Source:
- CommunicationException.cs
Initializes a new instance of the CommunicationException class, using the specified serialization information and context objects.
protected:
CommunicationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected CommunicationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.CommunicationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.CommunicationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
Information relevant to the deserialization process.
- context
- StreamingContext
The context of the deserialization process.
Applies to
CommunicationException(String, Exception)
- Source:
- CommunicationException.cs
- Source:
- CommunicationException.cs
- Source:
- CommunicationException.cs
Initializes a new instance of the CommunicationException class, using the specified message and the inner exception.
public:
CommunicationException(System::String ^ message, Exception ^ innerException);
public CommunicationException (string message, Exception innerException);
new System.ServiceModel.CommunicationException : string * Exception -> System.ServiceModel.CommunicationException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The description of the error condition.
- innerException
- Exception
The inner exception to be used.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기