StreamingContext.State Eigenschap

Definitie

Let op

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

Hiermee haalt u de bron of het doel van de verzonden gegevens op.

public:
 property System::Runtime::Serialization::StreamingContextStates State { System::Runtime::Serialization::StreamingContextStates get(); };
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public System.Runtime.Serialization.StreamingContextStates State { get; }
public System.Runtime.Serialization.StreamingContextStates State { get; }
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
member this.State : System.Runtime.Serialization.StreamingContextStates
member this.State : System.Runtime.Serialization.StreamingContextStates
Public ReadOnly Property State As StreamingContextStates

Waarde van eigenschap

Tijdens de serialisatie is het doel van de verzonden gegevens. Tijdens de deserialisatie is de bron van de gegevens.

Kenmerken

Opmerkingen

Tijdens de serialisatie geeft de huidige eigenschap het doel van de verzonden gegevens op. Bij het serialiseren van gegevens van externe communicatie tussen apps, is dat StreamingContextStates bijvoorbeeld het volgende CrossProcess. Tijdens de deserialisatie geeft de status de bron van de gedeserialiseerde stroom aan.

Van toepassing op