Microsoft
70-516 · Question #34
You are storing custom Car objects in a data table that will be serialized to a file. After serializing to a binary file called cars.bin, you open the file with a binary editor and notice that XML…
The correct answer is B. Set the RemotingFormat property to SerializationFormat.Binary. See the full explanation below for the reasoning.
Question
You are storing custom Car objects in a data table that will be serialized to a file. After serializing to a binary file called cars.bin, you open the file with a binary editor and notice that XML is in the file. Which setting can you use to ensure that you will create a binary file without embedded XML?
Options
- ASet the BatchUpdate setting to SerializationFormat.Binary.
- BSet the RemotingFormat property to SerializationFormat.Binary.
- CSet the DefaultView property to SerializationFormat.Binary.
- DSet the Constraints property to SerializationFormat.Binary.
How the community answered
(50 responses)- A16% (8)
- B74% (37)
- C4% (2)
- D6% (3)
Community Discussion
No community discussion yet for this question.