StreamingContext Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy StreamingContext.

Przeciążenia

Nazwa Opis
StreamingContext(StreamingContextStates)
Przestarzałe.

Inicjuje StreamingContext nowe wystąpienie klasy z danym stanem kontekstu.

StreamingContext(StreamingContextStates, Object)
Przestarzałe.

Inicjuje nowe wystąpienie StreamingContext klasy z danym stanem kontekstu i niektóre dodatkowe informacje.

StreamingContext(StreamingContextStates)

Źródło:
StreamingContext.cs
Źródło:
StreamingContext.cs
Źródło:
StreamingContext.cs
Źródło:
StreamingContext.cs
Źródło:
StreamingContext.cs

Uwaga

Formatter-based serialization is obsolete and should not be used.

Inicjuje StreamingContext nowe wystąpienie klasy z danym stanem kontekstu.

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)

Parametry

state
StreamingContextStates

Bitowa kombinacja StreamingContextStates wartości, które określają kontekst źródłowy lub docelowy dla tego elementu StreamingContext.

Atrybuty

Zobacz też

Dotyczy

StreamingContext(StreamingContextStates, Object)

Źródło:
StreamingContext.cs
Źródło:
StreamingContext.cs
Źródło:
StreamingContext.cs
Źródło:
StreamingContext.cs
Źródło:
StreamingContext.cs

Uwaga

Formatter-based serialization is obsolete and should not be used.

Inicjuje nowe wystąpienie StreamingContext klasy z danym stanem kontekstu i niektóre dodatkowe informacje.

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)

Parametry

state
StreamingContextStates

Bitowa kombinacja StreamingContextStates wartości, które określają kontekst źródłowy lub docelowy dla tego elementu StreamingContext.

additional
Object

Wszelkie dodatkowe informacje, które mają być skojarzone z elementem StreamingContext. Te informacje są dostępne dla dowolnego obiektu, który implementuje ISerializable lub dowolny surogat serializacji. Większość użytkowników nie musi ustawiać tego parametru.

Atrybuty

Zobacz też

Dotyczy