StreamingContext Konstruktoren
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Initialisiert eine neue Instanz der StreamingContext-Klasse.
Überlädt
| Name | Beschreibung |
|---|---|
| StreamingContext(StreamingContextStates) |
Veraltet.
Initialisiert eine neue Instanz der StreamingContext Klasse mit einem bestimmten Kontextstatus. |
| StreamingContext(StreamingContextStates, Object) |
Veraltet.
Initialisiert eine neue Instanz der StreamingContext Klasse mit einem bestimmten Kontextstatus und einige zusätzliche Informationen. |
StreamingContext(StreamingContextStates)
- Quelle:
- StreamingContext.cs
- Quelle:
- StreamingContext.cs
- Quelle:
- StreamingContext.cs
- Quelle:
- StreamingContext.cs
- Quelle:
- StreamingContext.cs
Achtung
Formatter-based serialization is obsolete and should not be used.
Initialisiert eine neue Instanz der StreamingContext Klasse mit einem bestimmten Kontextstatus.
public:
StreamingContext(System::Runtime::Serialization::StreamingContextStates state);
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public StreamingContext(System.Runtime.Serialization.StreamingContextStates state);
public StreamingContext(System.Runtime.Serialization.StreamingContextStates state);
[<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.StreamingContext : System.Runtime.Serialization.StreamingContextStates -> System.Runtime.Serialization.StreamingContext
new System.Runtime.Serialization.StreamingContext : System.Runtime.Serialization.StreamingContextStates -> System.Runtime.Serialization.StreamingContext
Public Sub New (state As StreamingContextStates)
Parameter
- state
- StreamingContextStates
Eine bitweise Kombination der StreamingContextStates Werte, die den Quell- oder Zielkontext für diesen StreamingContextangeben.
- Attribute
Weitere Informationen
Gilt für:
StreamingContext(StreamingContextStates, Object)
- Quelle:
- StreamingContext.cs
- Quelle:
- StreamingContext.cs
- Quelle:
- StreamingContext.cs
- Quelle:
- StreamingContext.cs
- Quelle:
- StreamingContext.cs
Achtung
Formatter-based serialization is obsolete and should not be used.
Initialisiert eine neue Instanz der StreamingContext Klasse mit einem bestimmten Kontextstatus und einige zusätzliche Informationen.
public:
StreamingContext(System::Runtime::Serialization::StreamingContextStates state, System::Object ^ additional);
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public StreamingContext(System.Runtime.Serialization.StreamingContextStates state, object? additional);
public StreamingContext(System.Runtime.Serialization.StreamingContextStates state, object? additional);
public StreamingContext(System.Runtime.Serialization.StreamingContextStates state, object additional);
[<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.StreamingContext : System.Runtime.Serialization.StreamingContextStates * obj -> System.Runtime.Serialization.StreamingContext
new System.Runtime.Serialization.StreamingContext : System.Runtime.Serialization.StreamingContextStates * obj -> System.Runtime.Serialization.StreamingContext
Public Sub New (state As StreamingContextStates, additional As Object)
Parameter
- state
- StreamingContextStates
Eine bitweise Kombination der StreamingContextStates Werte, die den Quell- oder Zielkontext für diesen StreamingContextangeben.
- additional
- Object
Alle zusätzlichen Informationen, die dem StreamingContextzugeordnet werden sollen. Diese Informationen sind für jedes Objekt verfügbar, das eine Serialisierungs-Surrogate ISerializable implementiert oder implementiert. Die meisten Benutzer müssen diesen Parameter nicht festlegen.
- Attribute