微软MCAD 70-310 实战百题
题目内容

You create a class named User that provides user information from a variety of data sources. Different instances of User connect to different data sources to load the dat

2021-12-25

A.User is a read-only representation of user information and does not support written changes back to a data source.The User class includes the following code segment: Public Class UserPublic Sub New(String connectionstring)Me.connectionstring =* connectionstring 'Additional construction code goes here.End SubFriend Readonly Property ConnectionString() As String GetReturn connectionstringEnd GetEnd PropertyPrivate connectionstring As String 'Other methods and properties go here.End ClassOnce a User object has been populated, it no longer needs the connectionstring member variable.You have a .NET Remoting object named Project that returns User objects. You want to prevent remote client applications from being able to view the content of the connectionstring member variable.What should you do?A.Make the Connectionstring property private

B.Remove the connectionstring parameter from the constructor

C.Add the NonSerialized attribute to the Connectionstring property

D.Add the NonSerialized attribute to the connectionstring member variable

题目答案

试卷相关题目

最新试卷
热门试卷

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端