Microsoft
70-513 · Question #90
You are developing a Windows Communication Foundation (WCF) service. The following code defines and implements the service. (Line numbers are included for reference only.) You need to ensure that…
The correct answer is B. MessageBuffer buffer = message.CreateBufferedCopy(8192). See the full explanation below for the reasoning.
Question
You are developing a Windows Communication Foundation (WCF) service. The following code defines and implements the service. (Line numbers are included for reference only.) You need to ensure that two identical copies of the received message are created in the service. Which code segment should you insert at line 12?
Exhibit
Options
- AMessage msgCopy = message.CreateBufferedCopy(8192) as Message;
- BMessageBuffer buffer = message.CreateBufferedCopy(8192);
- CMessageBuffer buffer = message.CreateBufferedCopy(8192);
- DMessage msgCopy = message;
How the community answered
(20 responses)- A10% (2)
- B70% (14)
- C15% (3)
- D5% (1)
Community Discussion
No community discussion yet for this question.
