StreamingContext Constructor (StreamingContextStates, Object^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

public:
StreamingContext(
	StreamingContextStates state,
	Object^ additional
)

Parameters

state
Type: System.Runtime.Serialization::StreamingContextStates

A bitwise combination of the StreamingContextStates values that specify the source or destination context for this StreamingContext.

additional
Type: System::Object^

Any additional information to be associated with the StreamingContext. This information is available to any object that implements ISerializable or any serialization surrogate. Most users do not need to set this parameter.

The following example creates an instance of the StreamingContext class using the state and additional parameters.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Silverlight
Available since 4.0
Return to top
Show: