Aracılığıyla paylaş


SocketException Oluşturucular

Tanım

SocketException sınıfının yeni bir örneğini başlatır.

Aşırı Yüklemeler

Name Description
SocketException()

Sınıfının yeni bir örneğini SocketException son işletim sistemi hata koduyla başlatır.

SocketException(Int32)

Belirtilen hata koduyla sınıfının yeni bir örneğini SocketException başlatır.

SocketException(Int32, String)

Belirtilen hata kodu ve iletisiyle sınıfının yeni bir örneğini SocketException başlatır.

SocketException(SerializationInfo, StreamingContext)
Geçersiz.

ve StreamingContext sınıflarının SocketException belirtilen örneklerinden SerializationInfo sınıfının yeni bir örneğini başlatır.

SocketException()

Kaynak:
SocketException.Unix.cs
Kaynak:
SocketException.Unix.cs
Kaynak:
SocketException.Unix.cs
Kaynak:
SocketException.Unix.cs
Kaynak:
SocketException.Unix.cs

Sınıfının yeni bir örneğini SocketException son işletim sistemi hata koduyla başlatır.

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

Açıklamalar

Oluşturucu özelliği SocketException , ErrorCode oluşan son işletim sistemi yuva hatasına ayarlar. Yuva hata kodları hakkında daha fazla bilgi için Windows Yuvaları sürüm 2 API hata kodu belgelerine bakın.

Şunlara uygulanır

SocketException(Int32)

Kaynak:
SocketException.cs
Kaynak:
SocketException.cs
Kaynak:
SocketException.cs
Kaynak:
SocketException.cs
Kaynak:
SocketException.cs

Belirtilen hata koduyla sınıfının yeni bir örneğini SocketException başlatır.

public:
 SocketException(int errorCode);
public SocketException(int errorCode);
new System.Net.Sockets.SocketException : int -> System.Net.Sockets.SocketException
Public Sub New (errorCode As Integer)

Parametreler

errorCode
Int32

Oluşan hatayı gösteren hata kodu.

Açıklamalar

Oluşturucu, SocketException özelliğini olarak ErrorCodeerrorCodeayarlar.

Şunlara uygulanır

SocketException(Int32, String)

Kaynak:
SocketException.cs
Kaynak:
SocketException.cs
Kaynak:
SocketException.cs
Kaynak:
SocketException.cs

Belirtilen hata kodu ve iletisiyle sınıfının yeni bir örneğini SocketException başlatır.

public:
 SocketException(int errorCode, System::String ^ message);
public SocketException(int errorCode, string? message);
new System.Net.Sockets.SocketException : int * string -> System.Net.Sockets.SocketException
Public Sub New (errorCode As Integer, message As String)

Parametreler

errorCode
Int32

Oluşan hatayı gösteren hata kodu.

message
String

Hatayı açıklayan ileti.

Şunlara uygulanır

SocketException(SerializationInfo, StreamingContext)

Kaynak:
SocketException.cs
Kaynak:
SocketException.cs
Kaynak:
SocketException.cs
Kaynak:
SocketException.cs
Kaynak:
SocketException.cs

Dikkat

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

ve StreamingContext sınıflarının SocketException belirtilen örneklerinden SerializationInfo sınıfının yeni bir örneğini başlatır.

protected:
 SocketException(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 SocketException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
protected SocketException(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.Net.Sockets.SocketException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.Sockets.SocketException
new System.Net.Sockets.SocketException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.Sockets.SocketException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Parametreler

serializationInfo
SerializationInfo

SerializationInfo Yeni SocketException örneği seri hale getirmek için gereken bilgileri içeren örnek.

streamingContext
StreamingContext

StreamingContext Yeni SocketException örnekle ilişkili serileştirilmiş akışın kaynağını içeren bir.

Öznitelikler

Açıklamalar

Bu oluşturucu sınıfı için arabirimini SocketException uygularISerializable.

Ayrıca bkz.

Şunlara uygulanır