IsolatedStorageException Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Inicjuje nowe wystąpienie klasy IsolatedStorageException.
Przeciążenia
| IsolatedStorageException() |
Inicjuje IsolatedStorageException nowe wystąpienie klasy z domyślnymi właściwościami. |
| IsolatedStorageException(String) |
Inicjuje IsolatedStorageException nowe wystąpienie klasy z określonym komunikatem o błędzie. |
| IsolatedStorageException(SerializationInfo, StreamingContext) |
Przestarzałe.
Inicjuje nowe wystąpienie klasy IsolatedStorageException z zserializowanymi danymi. |
| IsolatedStorageException(String, Exception) |
Inicjuje nowe wystąpienie IsolatedStorageException klasy z określonym komunikatem o błędzie i odwołaniem do wyjątku wewnętrznego, który jest przyczyną tego wyjątku. |
IsolatedStorageException()
- Źródło:
- IsolatedStorageException.cs
- Źródło:
- IsolatedStorageException.cs
- Źródło:
- IsolatedStorageException.cs
Inicjuje IsolatedStorageException nowe wystąpienie klasy z domyślnymi właściwościami.
public:
IsolatedStorageException();
public IsolatedStorageException ();
Public Sub New ()
Uwagi
Poniższa tabela prezentuje początkowe wartości właściwości dla wystąpienia klasy IsolatedStorageException.
| Właściwość | Wartość |
|---|---|
| InnerException |
null. |
| Message | Zlokalizowany ciąg z komunikatem o błędzie. |
Dotyczy
IsolatedStorageException(String)
- Źródło:
- IsolatedStorageException.cs
- Źródło:
- IsolatedStorageException.cs
- Źródło:
- IsolatedStorageException.cs
Inicjuje IsolatedStorageException nowe wystąpienie klasy z określonym komunikatem o błędzie.
public:
IsolatedStorageException(System::String ^ message);
public IsolatedStorageException (string message);
public IsolatedStorageException (string? message);
new System.IO.IsolatedStorage.IsolatedStorageException : string -> System.IO.IsolatedStorage.IsolatedStorageException
Public Sub New (message As String)
Parametry
- message
- String
Komunikat o błędzie wyjaśniający przyczynę wyjątku.
Uwagi
Poniższa tabela prezentuje początkowe wartości właściwości dla wystąpienia klasy IsolatedStorageException.
| Właściwość | Wartość |
|---|---|
| InnerException |
null. |
| Message | Ciąg komunikatu o błędzie. |
Dotyczy
IsolatedStorageException(SerializationInfo, StreamingContext)
- Źródło:
- IsolatedStorageException.cs
- Źródło:
- IsolatedStorageException.cs
- Źródło:
- IsolatedStorageException.cs
Przestroga
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Inicjuje nowe wystąpienie klasy IsolatedStorageException z zserializowanymi danymi.
protected:
IsolatedStorageException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected IsolatedStorageException (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 IsolatedStorageException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.IO.IsolatedStorage.IsolatedStorageException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IO.IsolatedStorage.IsolatedStorageException
[<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.IO.IsolatedStorage.IsolatedStorageException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.IO.IsolatedStorage.IsolatedStorageException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parametry
- info
- SerializationInfo
Obiekt zawierający dane serializowanego obiektu.
- context
- StreamingContext
Informacje kontekstowe dotyczące źródła lub miejsca docelowego.
- Atrybuty
Uwagi
Ten konstruktor jest wywoływana podczas deserializacji do odtworzenia obiektu wyjątku przesyłanego za pomocą strumienia.
Dotyczy
IsolatedStorageException(String, Exception)
- Źródło:
- IsolatedStorageException.cs
- Źródło:
- IsolatedStorageException.cs
- Źródło:
- IsolatedStorageException.cs
Inicjuje nowe wystąpienie IsolatedStorageException klasy z określonym komunikatem o błędzie i odwołaniem do wyjątku wewnętrznego, który jest przyczyną tego wyjątku.
public:
IsolatedStorageException(System::String ^ message, Exception ^ inner);
public IsolatedStorageException (string message, Exception inner);
public IsolatedStorageException (string? message, Exception? inner);
new System.IO.IsolatedStorage.IsolatedStorageException : string * Exception -> System.IO.IsolatedStorage.IsolatedStorageException
Public Sub New (message As String, inner As Exception)
Parametry
- message
- String
Komunikat o błędzie wyjaśniający przyczynę wyjątku.
- inner
- Exception
Wyjątek będący przyczyną bieżącego wyjątku.
inner Jeśli parametr nie nulljest , bieżący wyjątek jest zgłaszany w catch bloku, który obsługuje wyjątek wewnętrzny.
Uwagi
Wyjątek zgłaszany bezpośrednio w wyniku poprzedniego wyjątku powinien zawierać odwołanie do poprzedniego wyjątku we właściwości InnerException. Właściwość InnerException zwraca tę samą wartość, która została przekazana do konstruktora, lub wartość null, jeśli właściwość InnerException nie przekazuje do konstruktora wartości wyjątku wewnętrznego.
Poniższa tabela prezentuje początkowe wartości właściwości dla wystąpienia klasy IsolatedStorageException.
| Właściwość | Wartość |
|---|---|
| InnerException | Odwołanie do wewnętrznego wyjątku. |
| Message | Ciąg komunikatu o błędzie. |