WarningException Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Initierar en ny instans av WarningException klassen.
Överlagringar
| Name | Description |
|---|---|
| WarningException() |
Initierar en ny instans av WarningException klassen. |
| WarningException(String) |
Initierar en ny instans av WarningException klassen med det angivna meddelandet och ingen hjälpfil. |
| WarningException(SerializationInfo, StreamingContext) |
Föråldrad.
Initierar en ny instans av WarningException klassen med angivna serialiseringsdata och kontext. |
| WarningException(String, Exception) |
Initierar en ny instans av WarningException klassen med den angivna detaljerade beskrivningen och det angivna undantaget. |
| WarningException(String, String) |
Initierar en ny instans av WarningException klassen med det angivna meddelandet och med åtkomst till den angivna hjälpfilen. |
| WarningException(String, String, String) |
Initierar en ny instans av WarningException klassen med det angivna meddelandet och med åtkomst till den angivna hjälpfilen och ämnet. |
WarningException()
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
Initierar en ny instans av WarningException klassen.
public:
WarningException();
public WarningException();
Public Sub New ()
Gäller för
WarningException(String)
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
Initierar en ny instans av WarningException klassen med det angivna meddelandet och ingen hjälpfil.
public:
WarningException(System::String ^ message);
public WarningException(string? message);
public WarningException(string message);
new System.ComponentModel.WarningException : string -> System.ComponentModel.WarningException
Public Sub New (message As String)
Parametrar
- message
- String
Meddelandet som ska visas för slutanvändaren.
Gäller för
WarningException(SerializationInfo, StreamingContext)
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
Varning
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Initierar en ny instans av WarningException klassen med angivna serialiseringsdata och kontext.
protected:
WarningException(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 WarningException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected WarningException(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.ComponentModel.WarningException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.WarningException
new System.ComponentModel.WarningException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.WarningException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parametrar
- info
- SerializationInfo
Som SerializationInfo ska användas för deserialisering.
- context
- StreamingContext
Målet som ska användas för deserialisering.
- Attribut
Gäller för
WarningException(String, Exception)
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
Initierar en ny instans av WarningException klassen med den angivna detaljerade beskrivningen och det angivna undantaget.
public:
WarningException(System::String ^ message, Exception ^ innerException);
public WarningException(string? message, Exception? innerException);
public WarningException(string message, Exception innerException);
new System.ComponentModel.WarningException : string * Exception -> System.ComponentModel.WarningException
Public Sub New (message As String, innerException As Exception)
Parametrar
- message
- String
En detaljerad beskrivning av felet.
- innerException
- Exception
En referens till det inre undantaget som är orsaken till det här undantaget.
Gäller för
WarningException(String, String)
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
Initierar en ny instans av WarningException klassen med det angivna meddelandet och med åtkomst till den angivna hjälpfilen.
public:
WarningException(System::String ^ message, System::String ^ helpUrl);
public WarningException(string? message, string? helpUrl);
public WarningException(string message, string helpUrl);
new System.ComponentModel.WarningException : string * string -> System.ComponentModel.WarningException
Public Sub New (message As String, helpUrl As String)
Parametrar
- message
- String
Meddelandet som ska visas för slutanvändaren.
- helpUrl
- String
Hjälpfilen som ska visas om användaren begär hjälp.
Gäller för
WarningException(String, String, String)
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
- Källa:
- WarningException.cs
Initierar en ny instans av WarningException klassen med det angivna meddelandet och med åtkomst till den angivna hjälpfilen och ämnet.
public:
WarningException(System::String ^ message, System::String ^ helpUrl, System::String ^ helpTopic);
public WarningException(string? message, string? helpUrl, string? helpTopic);
public WarningException(string message, string helpUrl, string helpTopic);
new System.ComponentModel.WarningException : string * string * string -> System.ComponentModel.WarningException
Public Sub New (message As String, helpUrl As String, helpTopic As String)
Parametrar
- message
- String
Meddelandet som ska visas för slutanvändaren.
- helpUrl
- String
Hjälpfilen som ska visas om användaren begär hjälp.
- helpTopic
- String
Hjälpavsnittet som ska visas om användaren begär hjälp.