VerificationException Konstruktorer

Definition

Initierar en ny instans av VerificationException klassen.

Överlagringar

Name Description
VerificationException()

Initierar en ny instans av VerificationException klassen med standardegenskaper.

VerificationException(String)

Initierar en ny instans av VerificationException klassen med ett förklarande meddelande.

VerificationException(SerializationInfo, StreamingContext)
Föråldrad.

Initierar en ny instans av VerificationException klassen med serialiserade data.

VerificationException(String, Exception)

Initierar en ny instans av VerificationException klassen med ett angivet felmeddelande och en referens till det inre undantaget som är orsaken till det här undantaget.

VerificationException()

Källa:
VerificationException.cs
Källa:
VerificationException.cs
Källa:
VerificationException.cs
Källa:
VerificationException.cs
Källa:
VerificationException.cs

Initierar en ny instans av VerificationException klassen med standardegenskaper.

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

Kommentarer

VerificationException använder HRESULT-COR_E_VERIFICATION.

Gäller för

VerificationException(String)

Källa:
VerificationException.cs
Källa:
VerificationException.cs
Källa:
VerificationException.cs
Källa:
VerificationException.cs
Källa:
VerificationException.cs

Initierar en ny instans av VerificationException klassen med ett förklarande meddelande.

public:
 VerificationException(System::String ^ message);
public VerificationException(string message);
public VerificationException(string? message);
new System.Security.VerificationException : string -> System.Security.VerificationException
Public Sub New (message As String)

Parametrar

message
String

Ett meddelande som anger orsaken till att undantaget inträffade.

Gäller för

VerificationException(SerializationInfo, StreamingContext)

Källa:
VerificationException.cs
Källa:
VerificationException.cs
Källa:
VerificationException.cs
Källa:
VerificationException.cs
Källa:
VerificationException.cs

Varning

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

Initierar en ny instans av VerificationException klassen med serialiserade data.

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

Parametrar

info
SerializationInfo

Objektet som innehåller serialiserade objektdata.

context
StreamingContext

Sammanhangsinformation om källan eller målet.

Attribut

Kommentarer

Den här konstruktorn anropas under deserialiseringen för att återskapa undantagsobjektet som överförs via en ström.

Gäller för

VerificationException(String, Exception)

Källa:
VerificationException.cs
Källa:
VerificationException.cs
Källa:
VerificationException.cs
Källa:
VerificationException.cs
Källa:
VerificationException.cs

Initierar en ny instans av VerificationException klassen med ett angivet felmeddelande och en referens till det inre undantaget som är orsaken till det här undantaget.

public:
 VerificationException(System::String ^ message, Exception ^ innerException);
public VerificationException(string message, Exception innerException);
public VerificationException(string? message, Exception? innerException);
new System.Security.VerificationException : string * Exception -> System.Security.VerificationException
Public Sub New (message As String, innerException As Exception)

Parametrar

message
String

Felmeddelandet som förklarar orsaken till undantaget.

innerException
Exception

Undantaget som är orsaken till det aktuella undantaget. Om parametern innerException inte nullär genereras det aktuella undantaget i ett catch block som hanterar det inre undantaget.

Kommentarer

Ett undantag som genereras som ett direkt resultat av ett tidigare undantag bör innehålla en referens till det tidigare undantaget i InnerException egenskapen. Egenskapen InnerException returnerar samma värde som skickas till konstruktorn, eller null om InnerException egenskapen inte anger det inre undantagsvärdet till konstruktorn.

I följande tabell visas de inledande egenskapsvärdena för en instans av VerificationException.

Fastighet Value
InnerException Den inre undantagsreferensen.
Message Felmeddelandesträngen.

Se även

Gäller för