LegacySoapSerializerSerialize Method

Serializes root and its reachable graph as legacy SOAP XML.

Definition

Namespace: Gemstone.PhasorProtocols
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.181 -- Release Build+69c74c3448bebb1c8c739a856f2a43b00db6d500
public static void Serialize(
	Stream stream,
	Object root,
	SerializationBinder? binder = null
)

Parameters

stream  Stream
Destination stream for the XML payload. Not closed by this method.
root  Object
Root object — must be marked SerializableAttribute and (almost always) implement ISerializable.
binder  SerializationBinder  (Optional)
Optional SerializationBinder used to translate runtime types to legacy emitted names. Defaults to LegacyBinder, which emits GSF.* names so output remains readable by .NET Framework consumers (PMU Connection Tester, older openPDC builds). Pass a custom binder (or one whose BindToName returns the runtime type unchanged) to emit native names.

See Also