InvalidOleVariantTypeException Constructors

Definitie

Initialiseert een nieuw exemplaar van de InvalidOleVariantTypeException klasse.

Overloads

Name Description
InvalidOleVariantTypeException()

Initialiseert een nieuw exemplaar van de InvalidOleVariantTypeException klasse met standaardwaarden.

InvalidOleVariantTypeException(String)

Initialiseert een nieuw exemplaar van de InvalidOleVariantTypeException klasse met een opgegeven bericht.

InvalidOleVariantTypeException(SerializationInfo, StreamingContext)
Verouderd.

Initialiseert een nieuw exemplaar van de InvalidOleVariantTypeException klasse op basis van serialisatiegegevens.

InvalidOleVariantTypeException(String, Exception)

Initialiseert een nieuw exemplaar van de InvalidOleVariantTypeException klasse met een opgegeven foutbericht en een verwijzing naar de binnenste uitzondering die de oorzaak van deze uitzondering is.

InvalidOleVariantTypeException()

Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs

Initialiseert een nieuw exemplaar van de InvalidOleVariantTypeException klasse met standaardwaarden.

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

Opmerkingen

InvalidOleVariantTypeException neemt over van SystemException. Met deze constructor worden de eigenschappen van het Exception object ingesteld, zoals wordt weergegeven in de volgende tabel.

Vastgoed Waarde
InnerException null.
Message Een gelokaliseerde tekenreeks voor foutberichten.

Van toepassing op

InvalidOleVariantTypeException(String)

Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs

Initialiseert een nieuw exemplaar van de InvalidOleVariantTypeException klasse met een opgegeven bericht.

public:
 InvalidOleVariantTypeException(System::String ^ message);
public InvalidOleVariantTypeException(string message);
public InvalidOleVariantTypeException(string? message);
new System.Runtime.InteropServices.InvalidOleVariantTypeException : string -> System.Runtime.InteropServices.InvalidOleVariantTypeException
Public Sub New (message As String)

Parameters

message
String

Het bericht dat de reden voor de uitzondering aangeeft.

Opmerkingen

InvalidOleVariantTypeException neemt over van SystemException. Met deze constructor worden de eigenschappen van het Exception object ingesteld, zoals wordt weergegeven in de volgende tabel.

Vastgoed Waarde
InnerException null.
Message message

Van toepassing op

InvalidOleVariantTypeException(SerializationInfo, StreamingContext)

Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs

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 InvalidOleVariantTypeException klasse op basis van serialisatiegegevens.

protected:
 InvalidOleVariantTypeException(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 InvalidOleVariantTypeException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected InvalidOleVariantTypeException(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.Runtime.InteropServices.InvalidOleVariantTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Runtime.InteropServices.InvalidOleVariantTypeException
new System.Runtime.InteropServices.InvalidOleVariantTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Runtime.InteropServices.InvalidOleVariantTypeException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

Het object met de geserialiseerde objectgegevens.

context
StreamingContext

De contextuele informatie over de bron of bestemming.

Kenmerken

Uitzonderingen

info is null.

Opmerkingen

Deze constructor wordt aangeroepen tijdens deserialisatie om het uitzonderingsobject te reconstitueren dat via een stroom wordt verzonden. Zie System.Runtime.Serialization voor meer informatie.

InvalidOleVariantTypeException neemt over van SystemException.

Van toepassing op

InvalidOleVariantTypeException(String, Exception)

Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs
Bron:
InvalidOleVariantTypeException.cs

Initialiseert een nieuw exemplaar van de InvalidOleVariantTypeException klasse met een opgegeven foutbericht en een verwijzing naar de binnenste uitzondering die de oorzaak van deze uitzondering is.

public:
 InvalidOleVariantTypeException(System::String ^ message, Exception ^ inner);
public InvalidOleVariantTypeException(string message, Exception inner);
public InvalidOleVariantTypeException(string? message, Exception? inner);
new System.Runtime.InteropServices.InvalidOleVariantTypeException : string * Exception -> System.Runtime.InteropServices.InvalidOleVariantTypeException
Public Sub New (message As String, inner As Exception)

Parameters

message
String

In het foutbericht wordt de reden voor de uitzondering uitgelegd.

inner
Exception

De uitzondering die de oorzaak is van de huidige uitzondering. Als de inner 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 InvalidOleVariantTypeException.

Vastgoed Waarde
InnerException De interne uitzonderingsreferentie.
Message De tekenreeks van het foutbericht.

Zie ook

Van toepassing op