RuntimeBinderException Konstruktorok
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Inicializálja a RuntimeBinderException osztály új példányát.
Túlterhelések
| Name | Description |
|---|---|
| RuntimeBinderException() |
Inicializálja a RuntimeBinderException osztály új példányát. |
| RuntimeBinderException(String) |
Inicializálja a RuntimeBinderException megadott hibaüzenetet tartalmazó osztály új példányát. |
| RuntimeBinderException(SerializationInfo, StreamingContext) |
Elavult.
Inicializálja a RuntimeBinderException szerializált adatokat tartalmazó osztály új példányát. |
| RuntimeBinderException(String, Exception) |
Inicializálja a RuntimeBinderException megadott hibaüzenetet tartalmazó osztály új példányát, valamint a kivétel okaként szolgáló belső kivételre mutató hivatkozást. |
RuntimeBinderException()
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
Inicializálja a RuntimeBinderException osztály új példányát.
public:
RuntimeBinderException();
public RuntimeBinderException();
Public Sub New ()
Megjegyzések
Ez a konstruktor inicializálja az Message új példány tulajdonságát egy rendszer által biztosított üzenetbe, amely leírja a hibát, például:"DefaultMessageDisplayedByParameterlessCtorWriterMustSupply". Ez az üzenet figyelembe veszi a jelenlegi rendszerkultúrát.
Az alábbi táblázat a példány kezdeti tulajdonságértékét InsufficientMemoryExceptionmutatja be.
| Ingatlan | Érték |
|---|---|
| InnerException |
null. |
| Message | A honosított hibaüzenet sztringje. |
Lásd még
A következőre érvényes:
RuntimeBinderException(String)
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
Inicializálja a RuntimeBinderException megadott hibaüzenetet tartalmazó osztály új példányát.
public:
RuntimeBinderException(System::String ^ message);
public RuntimeBinderException(string message);
public RuntimeBinderException(string? message);
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : string -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
Public Sub New (message As String)
Paraméterek
- message
- String
A kivételt leíró üzenet. A konstruktor hívójának gondoskodnia kell arról, hogy ez a sztring az aktuális rendszerkultúrához legyen honosítva.
Megjegyzések
Az alábbi táblázat a példány kezdeti tulajdonságértékét RuntimeBinderExceptionmutatja be.
| Ingatlan | Érték |
|---|---|
| InnerException |
null. |
| Message | A következőben megadott hibaüzenet-sztring message: . |
Lásd még
A következőre érvényes:
RuntimeBinderException(SerializationInfo, StreamingContext)
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
Figyelemfelhívás
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Inicializálja a RuntimeBinderException szerializált adatokat tartalmazó osztály új példányát.
protected:
RuntimeBinderException(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 RuntimeBinderException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
protected RuntimeBinderException(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 Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Paraméterek
- info
- SerializationInfo
A szerializált objektum adatait tartalmazó objektum a kidobott kivételről.
- context
- StreamingContext
A forrásra vagy a célra vonatkozó környezeti információk.
- Attribútumok
Megjegyzések
Ezt a konstruktort a deszerializálás során hívjuk meg a streamen keresztül továbbított kivételobjektum újbóli létrehozásához.
A következőre érvényes:
RuntimeBinderException(String, Exception)
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
- Forrás:
- RuntimeBinderException.cs
Inicializálja a RuntimeBinderException megadott hibaüzenetet tartalmazó osztály új példányát, valamint a kivétel okaként szolgáló belső kivételre mutató hivatkozást.
public:
RuntimeBinderException(System::String ^ message, Exception ^ innerException);
public RuntimeBinderException(string message, Exception innerException);
public RuntimeBinderException(string? message, Exception? innerException);
new Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : string * Exception -> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException
Public Sub New (message As String, innerException As Exception)
Paraméterek
- message
- String
A kivétel okát magyarázó hibaüzenet.
- innerException
- Exception
Az aktuális kivétel okaként megadott kivétel, vagy null értékű hivatkozás, ha nincs megadva belső kivétel.
Megjegyzések
Az előző kivétel közvetlen eredményeként keletkező kivételnek tartalmaznia kell a tulajdonság előző kivételére InnerException mutató hivatkozást. A InnerException tulajdonság ugyanazt az értéket adja vissza, amelyet a konstruktornak ad át, vagy null ha a InnerException tulajdonság nem adja meg a belső kivétel értékét a konstruktornak.
Az alábbi táblázat a példány kezdeti tulajdonságértékét RuntimeBinderExceptionmutatja be.
| Ingatlan | Érték |
|---|---|
| InnerException |
null. |
| Message | A következőben megadott hibaüzenet-sztring message: . |