6.6.4.3
ReadFromStream method
This method is used to re-create the collection from a previously-created serialization file.
The following example shows the usage of this method:
Return type
Method name
Result
ReadFromStream
Name
Data type
stream
Stream
This method is used to re-create the collection from a previously-created serialization file.
The following example shows the usage of this method:
IProfinetDeviceCollection devices = new IProfinetDeviceCollection();
FileStream f = File.OpenRead("myDataFile.SAT");
retVal = devices.ReadFromStream(f);
f.Close();
SIMATIC Automation Tool V2.1 user guide
Manual, V2.1.1 07/2016, A5E33042676-AC
SIMATIC Automation Tool API for .NET framework
Parameters
Parameter type
In
6.6 The IProfinetDeviceCollection class
Description
The source for de-serializing the collec-
tion
83