Redigeeri

Jagamisviis:


StreamingContext Struct

Definition

Describes the source and destination of a given serialized stream, and provides an additional caller-defined context.

public value class StreamingContext
public struct StreamingContext
public readonly struct StreamingContext
[System.Serializable]
public struct StreamingContext
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct StreamingContext
type StreamingContext = struct
[<System.Serializable>]
type StreamingContext = struct
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type StreamingContext = struct
Public Structure StreamingContext
Inheritance
StreamingContext
Attributes

Remarks

Indicates the source or destination of the bits that the formatter uses. Classes with surrogates or that implement ISerializable can serialize or ignore fields and values based on the information stored in the streaming context. For example, a window handle is still valid if the State property is set to System.Runtime.Serialization.StreamingContextStates.CrossProcess.

Constructors

StreamingContext(StreamingContextStates, Object)
Obsolete.

Initializes a new instance of the StreamingContext class with a given context state, and some additional information.

StreamingContext(StreamingContextStates)
Obsolete.

Initializes a new instance of the StreamingContext class with a given context state.

Properties

Context

Gets context specified as part of the additional context.

State
Obsolete.

Gets the source or destination of the transmitted data.

Methods

Equals(Object)

Determines whether two StreamingContext instances contain the same values.

GetHashCode()

Returns a hash code of this object.

Applies to

See also