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.187 -- Release Build+c9c1088b6e2a65c4a6e6b8eccc6dcbe1c00bd580
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