SerializationInfo 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 SerializationInfo klassen.
Överlagringar
| Name | Description |
|---|---|
| SerializationInfo(Type, IFormatterConverter) |
Föråldrad.
Skapar en ny instans av SerializationInfo klassen. |
| SerializationInfo(Type, IFormatterConverter, Boolean) |
Föråldrad.
Initierar en ny instans av SerializationInfo klassen. |
SerializationInfo(Type, IFormatterConverter)
- Källa:
- SerializationInfo.cs
- Källa:
- SerializationInfo.cs
- Källa:
- SerializationInfo.cs
- Källa:
- SerializationInfo.cs
- Källa:
- SerializationInfo.cs
Varning
Formatter-based serialization is obsolete and should not be used.
Viktigt!
Detta API uppfyller inte CLS.
Skapar en ny instans av SerializationInfo klassen.
public:
SerializationInfo(Type ^ type, System::Runtime::Serialization::IFormatterConverter ^ converter);
[System.CLSCompliant(false)]
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public SerializationInfo(Type type, System.Runtime.Serialization.IFormatterConverter converter);
[System.CLSCompliant(false)]
public SerializationInfo(Type type, System.Runtime.Serialization.IFormatterConverter converter);
[<System.CLSCompliant(false)>]
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Runtime.Serialization.SerializationInfo : Type * System.Runtime.Serialization.IFormatterConverter -> System.Runtime.Serialization.SerializationInfo
[<System.CLSCompliant(false)>]
new System.Runtime.Serialization.SerializationInfo : Type * System.Runtime.Serialization.IFormatterConverter -> System.Runtime.Serialization.SerializationInfo
Public Sub New (type As Type, converter As IFormatterConverter)
Parametrar
- converter
- IFormatterConverter
Den IFormatterConverter som används under deserialiseringen.
- Attribut
Undantag
type eller converter är null.
Kommentarer
Den IFormatterConverter som skickas som converter parametern konverterar data från den interna representationen till formuläret som användaren begärde. Den interna representationen av data i SerializationInfo beror på vilken formatering som skapade dem.
Gäller för
SerializationInfo(Type, IFormatterConverter, Boolean)
- Källa:
- SerializationInfo.cs
- Källa:
- SerializationInfo.cs
- Källa:
- SerializationInfo.cs
- Källa:
- SerializationInfo.cs
- Källa:
- SerializationInfo.cs
Varning
Formatter-based serialization is obsolete and should not be used.
Viktigt!
Detta API uppfyller inte CLS.
Initierar en ny instans av SerializationInfo klassen.
public:
SerializationInfo(Type ^ type, System::Runtime::Serialization::IFormatterConverter ^ converter, bool requireSameTokenInPartialTrust);
[System.CLSCompliant(false)]
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public SerializationInfo(Type type, System.Runtime.Serialization.IFormatterConverter converter, bool requireSameTokenInPartialTrust);
[System.CLSCompliant(false)]
public SerializationInfo(Type type, System.Runtime.Serialization.IFormatterConverter converter, bool requireSameTokenInPartialTrust);
[<System.CLSCompliant(false)>]
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Runtime.Serialization.SerializationInfo : Type * System.Runtime.Serialization.IFormatterConverter * bool -> System.Runtime.Serialization.SerializationInfo
[<System.CLSCompliant(false)>]
new System.Runtime.Serialization.SerializationInfo : Type * System.Runtime.Serialization.IFormatterConverter * bool -> System.Runtime.Serialization.SerializationInfo
Public Sub New (type As Type, converter As IFormatterConverter, requireSameTokenInPartialTrust As Boolean)
Parametrar
- converter
- IFormatterConverter
Den IFormatterConverter som används under deserialiseringen.
- requireSameTokenInPartialTrust
- Boolean
Anger om objektet kräver samma token i partiellt förtroende.
- Attribut