Which code segment should you insert at line 14?

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 14?

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 14?

A.
Dim buffer As MessageBuffer = message. CreateBufferedCopy(8192) Dim msgCopy As
Message = buffer.CreateMessage() Dim returnMsg As Message = buffer.CreateMessage()

B.
Dim msgCopy As Message = TryCast( TryCast(message.CreateBufferedCopy(8192),
Object), Message) Dim returnMsg As Message = TryCast(
TryCast(message.CreateBufferedCopy(8192), Object), Message)

C.
Dim buffer As MessageBuffer = message. CreateBufferedCopy(8192) Dim msgCopy As
Message = buffer.CreateMessage() Dim returnMsg As Message » msgCopy

D.
Dim msgCopy As Message = message Dim returnMsg As Message = message



Leave a Reply 0

Your email address will not be published. Required fields are marked *