NetworkInformationException Constructors
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Initialiseert een nieuw exemplaar van de NetworkInformationException klasse.
Overloads
| Name | Description |
|---|---|
| NetworkInformationException() |
Initialiseert een nieuw exemplaar van de NetworkInformationException klasse. |
| NetworkInformationException(Int32) |
Initialiseert een nieuw exemplaar van de NetworkInformationException klasse met de opgegeven foutcode. |
| NetworkInformationException(SerializationInfo, StreamingContext) |
Verouderd.
Initialiseert een nieuw exemplaar van de NetworkInformationException klasse met geserialiseerde gegevens. |
NetworkInformationException()
Initialiseert een nieuw exemplaar van de NetworkInformationException klasse.
public:
NetworkInformationException();
public NetworkInformationException();
Public Sub New ()
Opmerkingen
Met deze constructor wordt de ErrorCode eigenschap ingesteld op de meest recente Win32 fout.
Van toepassing op
NetworkInformationException(Int32)
Initialiseert een nieuw exemplaar van de NetworkInformationException klasse met de opgegeven foutcode.
public:
NetworkInformationException(int errorCode);
public NetworkInformationException(int errorCode);
new System.Net.NetworkInformation.NetworkInformationException : int -> System.Net.NetworkInformation.NetworkInformationException
Public Sub New (errorCode As Integer)
Parameters
- errorCode
- Int32
Een Win32 foutcode.
Opmerkingen
Met deze constructor wordt de waarde van de ErrorCode eigenschap ingesteld op errorCode.
Van toepassing op
NetworkInformationException(SerializationInfo, StreamingContext)
Let op
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Initialiseert een nieuw exemplaar van de NetworkInformationException klasse met geserialiseerde gegevens.
protected:
NetworkInformationException(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 NetworkInformationException(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
protected NetworkInformationException(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.NetworkInformation.NetworkInformationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.NetworkInformation.NetworkInformationException
new System.Net.NetworkInformation.NetworkInformationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.NetworkInformation.NetworkInformationException
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)
Parameters
- serializationInfo
- SerializationInfo
Een SerializationInfo-object dat de geserialiseerde uitzonderingsgegevens bevat.
- streamingContext
- StreamingContext
Een StreamingContext met contextuele informatie over de geserialiseerde uitzondering.
- Kenmerken
Opmerkingen
Deze constructor wordt door het systeem gebruikt om een NetworkInformationException exemplaar te maken op basis van geserialiseerde gegevens.