You are creating a Windows Communication Foundation (WCF) service that accepts messages from clients when they are started. The message is defined as follows:[MessageContract] public class Agent {A. Add a MessageBodyMember attribute to the CodeName proper

题目
You are creating a Windows Communication Foundation (WCF) service that accepts messages from clients when they are started. The message is defined as follows:[MessageContract] public class Agent {

A. Add a MessageBodyMember attribute to the CodeName property and set the ProtectionLevel to Sign. Add a MessageBodyMember attribute to the SecretHandshake property and set the ProtectionLevel to EncryptAndSign.

B. Add a DataProtectionPermission attribute to the each property and set the ProtectData property to true.

C. Add an xmlText attribute to the CodeName property and set the DataType property to Signed. Add a PasswordPropertyText attribute to the SecretHandshake property and set its value to true.

D. Add an ImmutableObject attribute to the CodeName property and set its value property to true. Add a Browsable attribute to the SecretHandshake property and set its value to false.


相似考题
更多“You are creating a Windows Communication Foundation (WCF) service that accepts messages from clients when they are started. The message is defined as follows:[MessageContract] public class Agent { ”相关问题
  • 第1题:

    You are creating a Windows Communication Foundation (WCF) service. You need to ensure that the service is compatible with ASP.NET to make use of the session state. Which binding should you use?()

    A. NetTcpContextBinding

    B. BasicHttpContextBinding

    C. NetTcpBinding

    D. NetMsmqBinding


    参考答案:B

  • 第2题:

    You are developing a Windows Communication Foundation (WCF) service. You write a method named Submit that accepts messages of the type System.ServiceModel.Channels.Message. You need to process the body of the incoming messages multiple times in the method. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)()

    A. Use the GetBody method of the Message class to read the content of the messages.

    B. Use the CreateBufferedCopy method of the Message class to load the messages into memory.

    C. Use the WriteBodyContents method of the BodyWriter class to make a copy of the messages.

    D. Use the CreateMessage method of the MessageBuffer class to make a copy of the messages.


    参考答案:B, D

  • 第3题:

    下列哪些是CMake没有而Catkin有(Catkin扩展了)的指令?

    A.add_message_files()

    B.add_service_files()

    C.add_action_files()

    D.generate_messages()


    ABCD

  • 第4题:

    You have an existing Windows Communication Foundation (WCF) service. You need to ensure that other services are notified when the service is started.What should you do?()

    A.

    B.

    C.

    D.


    参考答案:D

  • 第5题:

    ASA/PIXversion7.0introducedModularPolicyFramework(MPF)asanextensiblewaytoclassifytraffic,andthenapplypolicies(oractions)tothattraffic.MPFataminimum requireswhichthreecommands?()

    A.http-map,tcp-map,class-map

    B.class-map,tcp-map,policy-map

    C.class-map,policy-map,service-map

    D.class-map,service-policy,policy-map


    参考答案:D