SynchronizationLockException 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 SynchronizationLockException klasse.
Overloads
| Name | Description |
|---|---|
| SynchronizationLockException() |
Initialiseert een nieuw exemplaar van de SynchronizationLockException klasse met standaardeigenschappen. |
| SynchronizationLockException(String) |
Initialiseert een nieuw exemplaar van de SynchronizationLockException klasse met een opgegeven foutbericht. |
| SynchronizationLockException(SerializationInfo, StreamingContext) |
Verouderd.
Initialiseert een nieuw exemplaar van de SynchronizationLockException klasse met geserialiseerde gegevens. |
| SynchronizationLockException(String, Exception) |
Initialiseert een nieuw exemplaar van de SynchronizationLockException klasse met een opgegeven foutbericht en een verwijzing naar de binnenste uitzondering die de oorzaak van deze uitzondering is. |
SynchronizationLockException()
Initialiseert een nieuw exemplaar van de SynchronizationLockException klasse met standaardeigenschappen.
public:
SynchronizationLockException();
public SynchronizationLockException();
Public Sub New ()
Opmerkingen
In de volgende tabel ziet u de oorspronkelijke eigenschapswaarden voor een exemplaar van SynchronizationLockException.
| Vastgoed | Waarde |
|---|---|
| InnerException |
null. |
| Message | De gelokaliseerde foutberichttekenreeks. |
Van toepassing op
SynchronizationLockException(String)
Initialiseert een nieuw exemplaar van de SynchronizationLockException klasse met een opgegeven foutbericht.
public:
SynchronizationLockException(System::String ^ message);
public SynchronizationLockException(string message);
public SynchronizationLockException(string? message);
new System.Threading.SynchronizationLockException : string -> System.Threading.SynchronizationLockException
Public Sub New (message As String)
Parameters
- message
- String
In het foutbericht wordt de reden voor de uitzondering uitgelegd.
Opmerkingen
In de volgende tabel ziet u de oorspronkelijke eigenschapswaarden voor een exemplaar van SynchronizationLockException.
| Vastgoed | Waarde |
|---|---|
| InnerException |
null. |
| Message | De tekenreeks van het foutbericht. |
Van toepassing op
SynchronizationLockException(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 SynchronizationLockException klasse met geserialiseerde gegevens.
protected:
SynchronizationLockException(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 SynchronizationLockException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected SynchronizationLockException(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}")>]
new System.Threading.SynchronizationLockException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Threading.SynchronizationLockException
new System.Threading.SynchronizationLockException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Threading.SynchronizationLockException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
Het SerializationInfo object dat de geserialiseerde objectgegevens bevat over de uitzondering die wordt gegenereerd.
- context
- StreamingContext
De StreamingContext informatie die contextuele informatie over de bron of bestemming bevat.
- Kenmerken
Opmerkingen
Deze constructor wordt aangeroepen tijdens deserialisatie om het uitzonderingsobject te reconstitueren dat via een stroom wordt verzonden. Zie XML- en SOAP-serialisatie voor meer informatie.
Zie ook
Van toepassing op
SynchronizationLockException(String, Exception)
Initialiseert een nieuw exemplaar van de SynchronizationLockException klasse met een opgegeven foutbericht en een verwijzing naar de binnenste uitzondering die de oorzaak van deze uitzondering is.
public:
SynchronizationLockException(System::String ^ message, Exception ^ innerException);
public SynchronizationLockException(string message, Exception innerException);
public SynchronizationLockException(string? message, Exception? innerException);
new System.Threading.SynchronizationLockException : string * Exception -> System.Threading.SynchronizationLockException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
In het foutbericht wordt de reden voor de uitzondering uitgelegd.
- innerException
- Exception
De uitzondering die de oorzaak is van de huidige uitzondering. Als de innerException parameter niet nullis, wordt de huidige uitzondering gegenereerd in een catch blok dat de binnenste uitzondering afhandelt.
Opmerkingen
Een uitzondering die wordt gegenereerd als direct resultaat van een vorige uitzondering, moet een verwijzing naar de vorige uitzondering in de InnerException eigenschap bevatten. De InnerException eigenschap retourneert dezelfde waarde die wordt doorgegeven aan de constructor of null als de InnerException eigenschap de binnenste uitzonderingswaarde niet aan de constructor levert.
In de volgende tabel ziet u de oorspronkelijke eigenschapswaarden voor een exemplaar van SynchronizationLockException.
| Vastgoed | Waarde |
|---|---|
| InnerException | De interne uitzonderingsreferentie. |
| Message | De tekenreeks van het foutbericht. |