微軟認證考試資料全



《微軟認證考試資料全》由會員分享,可在線閱讀,更多相關(guān)《微軟認證考試資料全(101頁珍藏版)》請在裝配圖網(wǎng)上搜索。
1、 ...wd... 1、 question 1 You work as the application developer at Cer-Tech . Cer-Tech uses Visual Studio.Net 2005 as its application development platform. 你在Cer-Tech 做應(yīng)用程序開發(fā)人員,Cer-Tech 使用VS2005作為其應(yīng)用程序的開發(fā)平臺。 You are developing a .Net F
2、ramework 2.0 application used to store a type-safe list of names and e-mail addresses. 你正在開發(fā)一個.Net Framework 2.0應(yīng)用程序,用來存儲一個包含了姓名和電子郵件的類型安全的列表〔清單〕。 The list will be populated all at once from the sorted data which means you well not always need to perform insertion or deletion operations on thd dat
3、a. 這個列表會被完全的填充從排序的數(shù)據(jù),這就意味著你不需要經(jīng)常對這些數(shù)據(jù)完成插入或刪除操作。 You are required to choose a data structure that optimizes〔優(yōu)化〕 memory use and has good performance. 請你選擇一個數(shù)據(jù)構(gòu)造,以便優(yōu)化內(nèi)存使用,具有良好的性能。 What should you do? 該若何做 A、 The System.Collections.Generic.SortedList class should be used B、 The System.Collections
4、.HashTable class should be used C、 The System.Collections.Generic.SortedDictionary class should be used D、 The System.Collections.SortedList class should be used 點評: SortedList 表示鍵/值對的集合,這些鍵值對按鍵排序并可按照鍵和索引訪問。 HashTable 表示鍵/值對的集合,這些鍵值對根據(jù)鍵的哈希代碼進展組織。 C 該類不存在 D 非類型安全的,沒有引人泛型。 2、 Question 2 You w
5、ork as an application developer at Cer-Tech . You have recently created an application that include the code shown below. 你在Cer-Tech 做應(yīng)用程序開發(fā)人員。最近你創(chuàng)立了一個應(yīng)用程序,包含如下的代碼: public delegate string GetFileContentsDel(); public string GetFileContens() { //Process file and return results } You no
6、w need to invoke the GetFileContents method asynchronously(異步).You have to ensure that the code you use to invoke the GetFileContents method will continue to process other user instructions,and displays the results as soon as the GetFileContents method finishes processing. What should you do? 現(xiàn)在你需要
7、異步調(diào)用GetFileContents方法。必須確保你的代碼在調(diào)用GetFileContents方法的同時將繼續(xù)處理其他用戶的指令,并在GetFileContents方法完成處理后顯示結(jié)果。你應(yīng)該若何做 A、 Use the following code: //創(chuàng)立委托對象并且實例化 GetFileContentsDel delAsync=new GetFileContentsDel(GetFileContents); IAsyncResult result=delAsync.BeginInvoke(null,null); while(!resul.IsCompleted) {
8、 //Process other user instructions } string strFile=delAsync.EndInvoke(result); B、 Use the following code: GetFileContentsDel delAsync=new GetFileContentsDel(GetFileContents); string strFile=delAsync.Invoke(); //直接調(diào)用 C、 Use the following code: string strFile=GetFileContents.Invoke();//語法錯誤
9、 D、 Use the following code: GetFileContentsDel delAsync=new GetFileContentsDel(GetFileContents); IAsyncResult result=delAsync.BeginInvoke(null,null); //Process other user instructions string strFile=delAsync.EndInvoke(result); 點評:IAsyncResult 包含異步操作的方法的類實現(xiàn)。對于只有同步方法的對象,只需要定義一個委托,并使用其BeginInvoke和
10、EndInvoke方法就可以了。 B、直接調(diào)用 C、語法錯誤 D、與題意不符合,沒有狀態(tài)判斷 3、 Question 3 You work as the application developer at Hi-Tech . You have created a new service application named App01.App01 must still be deployed into the Hi-Tech network. A Hi-Tech network administrator nam
11、ed Rosanne Keith has already created a user ccount for App01. You must configure App01 to run in the context of this new user account.What should you do next? 你在Hi-Tech 做應(yīng)用程序開發(fā)人員。你已經(jīng)創(chuàng)立了一個新的服務(wù)應(yīng)用程序命名App01.該服務(wù)必須部署在Hi-Tech 的網(wǎng)絡(luò)中。Hi-Tech 的一個叫羅薩安娜基思的網(wǎng)絡(luò)管理員已經(jīng)創(chuàng)立了App01的用戶帳號。在新的用戶帳號下要運行App01,你必須做一些相應(yīng)的
12、配置。下一步應(yīng)該做什么 A、 Before Deploying App01,specify the startType property of the ServiceInstaller class. B、 Before delploying App01,specify the Account,Username,and Password properties of the ServiceProcessInstaller class. 在部署App01之前,指定賬戶,用戶名和密碼的ServiceProcessInstaller類的屬性。 C、 Install the service by
13、using the CONFIG option of the net.exe command-line tool. D、 Install the service by using the installutil.exe command-line tool. 點評: 4、 Question 4 You pass a value-type variable into a procedure as an argument.The procedure changes the variable;however,when the procedure returns,the variable has
14、 not changed.What happened?(Choose one.) 你在一個方法中傳入了一個值類型的變量做參數(shù)。方法里改變了這個變量;而當(dāng)方法返回時,變量的值并沒有被改變。這是為什么〔選擇一項〕 A、 The variable was not initialized before it was passed in. 該變量在傳入的時候沒有被初始化 B、 Passing a value type into a procedure creates a copy of the data. 向方法里傳入值類型的變量,實際上是傳入了一個數(shù)據(jù)的。 C、 The variable
15、 was redeclared within the procedure level. 在方法體中重新申明了這個變量。 D、 The procedure handled the variable as a reference. 方法按引用處理了該變量 點評:考察了數(shù)據(jù)傳參的方式:按值傳參和按引用傳參。 5、 Question 5 You work as the application developer at Hi-Tech . You are working on a new application named App01. App01 is configure
16、d to perform a series of mathematical calculations. 你在Hi-tech 做應(yīng)用程序開發(fā)人員。正在開發(fā)一款新的應(yīng)用程序,名字叫App01;App01配置為執(zhí)行一系列的數(shù)學(xué)計算。 You create a class named AppClass and create a procedure named AppSP. AppSP must execute on an instance of the class. 你創(chuàng)立了一個AppClass的類和一個AppSP的方法。該方法必須作為該類的實例運行。 You must configur
17、e the application’s user interface(UI) so that it continues to respond for the duration that calculations are performed.You must write the code segment for calling the AppSPprocedure which will accomplish your objective.Choose the code segment which you should use. 你必須配置應(yīng)用程序的用戶界面,以便它在進展計算期間能夠繼續(xù)做出響應(yīng)
18、。你必須編寫用于調(diào)用AppSP程序的代碼,以實現(xiàn)上述目標。選擇下面的那段代碼可以使用。 A、 private void AppSP(){….} private void DoWork() { AppClass myValues=new AppClass(); Thread newThread=new Thread(new ThreadStart(AppSP)); newThread.Start(myValues); } B、 private void AppSP(){…} private void DoWork() { AppClass myValues=ne
19、w AppClass(); ThreadStart delStart=new ThreadStart(AppSP); Thread newThread=new Thread(delStart); if(newThread.IsAlive) { new Thread.Start(myValues); } } C、 private void AppSP(AppClass values){…..} private void DoWork() { AppClass myValues=new AppClass(); Application.DoEvents(); AppSP(m
20、yValues); Application.DoEvents(); } D、 private void AppSP(object values){….} private void DoWork() { AppClass myValues=new AppClass(); Thread newThread=new Thread(new ParameterizedThreadStart(AppSP)); } 點評:引入線程 ThreadStart 該委托不能帶參數(shù) ParameterizedThreadStart 該委托可以帶參數(shù) 6、
21、question 6 You work as the application developer at Cer-Tech . Cer-Tech uses Visual Studio.Net2005 as its application development platform. 你在Cer-Tech 做應(yīng)用程序開發(fā)人員。Cer-Tech 用VS2005作為其開發(fā)平臺。 You are developing a .NET Framework 2.0 financial application and are busy developing a module th
22、at backs up the critical data on a separate hard drive. 你正在開發(fā)一款.net2.0的財務(wù)應(yīng)用程序,并忙于開發(fā)一個模塊,備份關(guān)鍵數(shù)據(jù)到一個獨立的硬盤驅(qū)動器〔硬盤〕 You are required to decide which properties of the DriveInfo class to use and find the type of file system like FAT or NTFS and the drive free space and the user disk quota(配額/指標) should
23、be ignored by the application. 你必須決定DriverInfo類使用的參數(shù),找到像FAT或者NTFS類型的文件系統(tǒng)和磁盤的可以空間,并使應(yīng)用程序忽略用戶磁盤的配額。 What should you do?該若何做 A、 Use the DriveFormat and TotalFreeSpace properties of the DriveInfo class. B、 Use the DriveType and AvailableFreeSpace properties of the DriveInfo class. C、 Use the Volume
24、Label and TotalSize properties of the DriveInfo class D、 Use the DriveType and TotalSize properties of the DriveInfo class. E、 Use the DriveFormat and AvailableFreeSpace properties of the DriveInfo class. 點評:DriverInfo類的常用屬性和方法 沒有找到指定的屬性 7、 Question 7 You are writing a method for a consol
25、e application that lists options available to a user based on his group memberships.Which technique should you use? 你正在為一個控制臺應(yīng)用程序?qū)懸粋€方法,給一個基于組成員的用戶列出可用的選項。下面哪項技術(shù)可以 A、 WindowsPrincipal.IsInRole B、 WindowsIdentity.IsInRole C、 Imperative(迫切的) RBS demands(需求) D、 Declarative(聲明) RBS demands 點評:Windo
26、wsPrincipal 允許代碼檢查Windows用戶的Windows組成員身份 WindowsIdentity 表示W(wǎng)indows用戶 8、 Question 8 You are as the application developer at Hi-Tech . You are working on an application named App01. App01 must be configured to use role-based security and authentication. 你在Hi-tech 做應(yīng)用程序開發(fā)人員。正在開發(fā)一款A(yù)pp01
27、的應(yīng)用程序。該程序必須配置為使用基于角色安全和身份驗證。 You must develop the code segment which will result in the runtime assigning an unauthenticated principal object to each running thread. 你必須開發(fā)代碼段,這將導(dǎo)致在運行時分配了一個未經(jīng)歷證的主要對象對每個運行的線程。 Choose the code segment which will accomplish the task. 選擇那段代碼可以實現(xiàn)。 A、 AppDomain domain=
28、AppDomain.CurrentDomain; domain.SetPrincipalPolicy(PrincipalPolicy.WindowsPrincipal) B、 AppDomain domain=AppDomain.CurrentDomain; domain.SetThreadPrincipal(new WindowsPrinipal(null)); C、 AppDomain domain=AppDomain.CurrentDomain; domain.SetAppDomainPolicy(PolicyLevel.CreateAppDomainLevel()); D
29、、 AppDomain domain=AppDomain.CurrentDomain; domain.SetPrincipalPolicy(PrincipalPolicy.UnauthenticatedPrincipal); 點評:AppDomain 表示應(yīng)用程序域,它表示一個應(yīng)用程序在其中執(zhí)行的獨立環(huán)境。無法繼承此類。 9、 Question 9 Given the best answer,which of the following lines of code would reverse(反向/倒轉(zhuǎn)) the security restriction?(Choose al
30、l than apply) 給出最好的答案,下面的那個代碼行會破壞安全限制〔選擇多項〕 ‘VB‘注釋 Dim e as EventLogPermission=New EventLogPermission(PermissionState.Unrestricted) PermitOnly //C# EventLogPermission e=new EventLogPermission(PermissionState.Unrestricted); PermitOnly(); A、e.RevertPermitOnly B、CodeAccessPermission.RevertPerm
31、itOnly C、e.RevertAll D、CodeAccessPermission.RevertAll E、e.RevertDeny F、CodeAccessPermission.RevertDeny 點評:CodeAccessPermission類 定義了一個所有代碼訪問權(quán)限的底層構(gòu)造 System.Security.CodeAccessPermission 10、 Question 10 You work as the application developer at Hi-Tech . You are working on a new requi
32、rement. You have to create a class library that will open the network socket connections to computers on the Hi-Tech network. 你在Hi-Tech 做應(yīng)用程序開發(fā)員。在工作上有了新的要求,需要創(chuàng)立一個類庫,將翻開網(wǎng)絡(luò)套接字連接上Hi-Tech 的網(wǎng)絡(luò)。 The class library must be deployed to the global assembly cache, with full trust granted. To cater
33、 for network socket connections being used, you develop this code segment; 該類庫必須部署到全局程序集緩存,授予完全信任。為配合正在使用的網(wǎng)絡(luò)套接字連接,你開發(fā)如下的代碼段: SocketPermission permission=new SocketPermission(PermissionState.Unrestricted); permission.Assert(); You discover though that there are certain existing applications whic
34、h do not have the required permissions to open the network socket connections. You decide to cancel the assertion. Choose the code segment which will accomplish this task. 你發(fā)現(xiàn),雖然有一些現(xiàn)有的應(yīng)用程序不具有所需的權(quán)限翻開網(wǎng)絡(luò)套接字連接,你決定取消這一斷言,選擇代碼段將完成這項任務(wù)。 A、 CodeAccessPermission.RevertAssert(); B、 CodeAccessPermission.Rev
35、ertDeny(); C、 permission.Deny(); D、 permission.PermitOnly(); 點評:SocketPermission C和D不正確。 B 是對permission.Deny()方法的操作。 11、 question 11 You work as an application developer at Cer-Tech . You are required to dynamically load assemblies into a custom child application domain. 你在Cer-Tech 做
36、應(yīng)用程序開發(fā)員。要求動態(tài)的加載程序集到一個自定義的子應(yīng)用程序域。 You need to ensure that the assemblies loaded into the child application domain have the same permissions as the applications that are accessed across the local intranet. 你必須確保子應(yīng)用程序域中加載的程序集有整個本地intranet訪問的所有應(yīng)用程序有一樣的權(quán)限。 What should you do?該若何做 A、 Use the followin
37、g code to create the child application domain: Evidence childEvidence=new Evidence(new object[]{SecurityZone.Intranet},null); AppDomain.CreateDomain(“ChildDomain〞,childEvidence); B、 Use the following code to create the child application domain: AppDomain.CreateDomain(“ChildDomain〞,SecurityZone.I
38、ntranet); C、 Use the following code to create the child application domain: AppDomain domain=new AppDomain(“ChildDomain〞,SecurityZone.Intranet); D、 Use the following code to create the child application domain: Evidence childEvidence=new Evidence(new object[]{SecurityZone.Intranet},null); AppDo
39、main domain=new AppDomain(“ChildDomain〞,childEvidence); 點評:Evidence(證據(jù)) AppDomain:表示應(yīng)用程序域,它是一個應(yīng)用程序在其中執(zhí)行的獨立環(huán)境。 C和D錯誤,因為AppDomain的對象是不能通過new創(chuàng)立出來的。 B 第二個參數(shù)的類型不正確。SecurityZone是一個枚舉,定義與安全策略所使用的安全區(qū)域相對應(yīng)的整數(shù)值?!睸ystem.Security〕 AppDomain.CreateDomain(“字符串〞,Evidence對象); 參數(shù)一:域的友好名稱 參數(shù)二:System
40、.Security.Policy.Evidence 12、 Question 12 You work as the application developer at Hi-Tech . You create a code segment which will implement the class named Class01. The code segment is shown here: 你在Hi-Tech 在應(yīng)用程序開發(fā)人員。你創(chuàng)立了一個將實現(xiàn)Class01類的代碼片段。如下: MyMethod function. public class Class01 {
41、public int MyMethod(int arg) { return arg; } } You want the Class01.MyMethod function to be dynamically called from a separate class within the assembly. 你希望Class01.MyMethod方法是動態(tài)的從本程序集內(nèi)的另外一個類中調(diào)用。 Choose the code segment which you should use to accomplish the task.. 選擇能夠完成上述任務(wù)的代碼段。 A、 Class0
42、1 myClass=new Class01(); Type t=typeof(Class01); MethodInfo m=t.GetMethod(“MyMethod〞); int i=(int)m.Invoke(this,new object[]{1}); B、 Class01 myClass=new Class01(); Type t=typeof(Class01); MethodInfo m=t.GetMethod(“MyMethod〞); int i=(int)m.Invoke(myClass,new object[]{1}); C、 Class01 myClass=
43、new Class01(); Type t=typeof(Class01); MethodInfo m=t.GetMethod(“Class01.MyMethod〞); int i=(int)m.Invoke(myClass,new object[]{1}); D、 Type t=Type.GetType(“Class01”); MethodInfo m=t.GetMethod(“MyMethod〞); int i=(int)m.Invoke(this,new object[]{1}); 點評:反射 A和D不正確,因為在另外一個類中通過反射讀取Class01中MyMethod的
44、方法。Invoke的第一個參數(shù)是要反射的類的實例。 C不正確,GetMethod(“方法名〞),不需要加類名的限定符。 13、 Question 13 You work as the application developer at Hi-Tech . You are working on an existing application and must load a new assembly into this application. You must write the code segment that will require the common language ru
45、ntime(CLR) to grant the assembly a permission set,as though the assembly was loaded from the local intranet zone.You must ensure that the default evidence for the assembly is overridden and must create the evidence collection. 你在Hi-Tech 做應(yīng)用程序開發(fā)人員。你正在開發(fā)一個現(xiàn)有的應(yīng)用程序,而且必須加載一個新的程序集到該程序中。雖然這個程序集加載自本地int
46、ranet,你必須編寫代碼段使得公共語言運行時〔CLR〕授權(quán)給程序集一個權(quán)限集。你必須確保給程序集提供的默認證據(jù)被重寫,并且創(chuàng)立一個新的證據(jù)集。 Choose the code segment which will accomplish this task. A、 Evidence evidence=new Evidence(Assembly.GetExecutingAssembly().Evidence); GetExecutingAssembly()獲取當(dāng)前執(zhí)行代碼的程序集 Evidence獲取此程序集的證據(jù) B、 Evidence evidence=new Evidence()
47、; evidence.AddAssembly(new Zone(SecurityZone.Intranet)); 將指定的程序集證據(jù)添加到程序集 C、 Evidence evidence=new Evidence(); evidence.AddHost(new Zone(SecurityZone.Intranet)); 將主機提供的指定證據(jù)添加到程序集 D、 Evidence evidence=new Evidence(AppDomain.CurrentDomain.Evidence); 點評:定義組成對安全策略決策的輸入的一組信息,無法繼承此類。 System.Securit
48、y.Policy Evidence是一個集合,它持有一組表示證據(jù)的對象。該類有兩個與證據(jù)源〔主機證據(jù)和程序集證據(jù)〕對于的集合。 Host evidence由主機提供;Assembly evidence是程序集本身的一局部。 A和D都是獲得當(dāng)前程序集的證據(jù)集,與題意不符合。B 14、 Question 14 You are creating a front-end interface to a back-end database that stores user names and groups within the database itself. The user database
49、 is very simple,storing only user names and group memberships. You want to be able to use imperative and declarative RBS demands within your application based on the custom user database.Which of the following classes meets your requirements and would be most efficient to implement?(Choose all that
50、apply) 你正在創(chuàng)立一個前端界面后端數(shù)據(jù)庫,用于存儲用戶名和組在數(shù)據(jù)庫中。用戶數(shù)據(jù)庫非常簡單,只存儲用戶名和組成員。你希望在自定義用戶數(shù)據(jù)庫的應(yīng)用程序根基上使用命令聲明遠程Blob存儲命令。下面那些類滿足你的要求并能有效的實現(xiàn)〔選擇多項〕 A、 GenericIdentity B、 GenericPrincipal C、 IIdentity D、 IPrincipal 點評: System.Security.Principal.GenericIdentity 表示一般用戶 System.Security.Principal.GenericPrincipal System
51、.Security.Principal.IIdentity System.Security.Principal.IPrincipal 15、 Question 15 You work as the application developer at Hi-Tech . You are creating a new code segment which is to be used for user authentication(認證) and authorization(授權(quán)) purposes. The current application data store already s
52、tores the username,password, and roles. You must establish the user security context, which should be used for the authorization checks like IsInRole. To authorize the user, you have started developing the following code segment; 你在Hi-Tech 做應(yīng)用程序開發(fā)人員。你正在創(chuàng)立一個新的代碼段將被用于用戶認證和授權(quán)的目的〔用途〕。當(dāng)前應(yīng)用程序的數(shù)據(jù)存儲已經(jīng)存儲
53、了用戶名、密碼和角色。你必須營造一個安全的用戶環(huán)境,將被用于類似IsInRole的授權(quán)檢查。對授權(quán)用戶,你已經(jīng)開場開發(fā)如下的代碼段: if(!TestPassword(username,password)) Throw new Exception(“user not authenticated〞); String[]userRolesArray=LookupUserRoles(userName); (判斷該用戶名和密碼是否是認證用戶。如果不是就拋出一個異常;否則讀取該用戶的角色復(fù)制該一個字符串?dāng)?shù)組) From the options below,choose the code whi
54、ch will make the code segment complete. 從下面的選項中,選擇正確的代碼: A、 GenericIdentity ident=new GenericIdentity(userName); GenericPrincipal currentUser=new GenericPrincipal(ident,userRolesArray); Thread.CurrentPrincipal=currentUser; B、 WindowsIdentity ident=new WindowsIdentity(userName); WindowsPrincipa
55、l currentUser=new WindowsPrincipal(ident); Thread.CurrentPrincipal=currentUser; C、 NTAccount userNTName=new NTAccount(userName); GenericIdentity ident=new GenericIdentity(userNTName.Value); GenericPrincipal currentUser=new GenericPrincipal(ident,userRolesArray); Thread.CurrentPrincipal=currentU
56、ser; D、 IntPtr token=IntPtr.Zero; Token=LogonUserUsingInterop(username,encryptedPassword); WindowsImpersonationContext ctx=WindowsIdentity.Impersonate(token); 點評:GenericIdentity GenericPrincipal WindowsIdentity〔System.Security.Principal〕 NTAcount 用戶或組的賬戶類 16、 Question 16
57、 You work as an application developer at Cer-Tech . Cer-Tech has asked you to create an application that copies file content from one file on a client computer named XXYYinc-WS007 to a new file an a server named Server01. 你在Cer-Tech 做應(yīng)用程序開發(fā)人員。Cer-Tech 讓你實現(xiàn)一個應(yīng)用程序:復(fù)制文件內(nèi)容從客戶端機器〔XXYYinc-WS
58、007〕的一個文件到服務(wù)器端〔Server01〕的新文件。 The method displayed in the following exhibit is included in the new application; you have to ensure that the application copies all permissions on the original(原始) file to the new file. You should alse make sure that the new file does not inherit(繼承) its permissions f
59、rom the destination(目的地) directory on Server01. What should you do? 下面展示的方法包含在新的應(yīng)用程序中;你必須確保應(yīng)用程序復(fù)制所有原始文件權(quán)限到新文件。你還必須確保新文件不繼承服務(wù)器端Server01目標目錄的權(quán)限。 A、 Add the following code to the copy method: file2.SetAccessControl(file1.GetAccessControl()); B、 Add the following code to the copy method: FileSecuri
60、ty aci=file1.GetAccessControl(); aci.SetAccessRuleProtection(true,true); //第一個參數(shù):true防止被繼承;false允許繼承 //第二個參數(shù):true保存繼承的訪問規(guī)則;false不保存繼承的訪問規(guī)則 file2.SetAccessControl(aci); C、 Add the following code to the copy method: file2.SetAccessControl(file1.GetAccessControl(),false); D、 Add the following co
61、de to the copy method: FileSecurity aci=file1.GetAccessControl(); aci.SetAccessRuleProtection(true,false); file2.SetAccessControl(aci); 點評:FileSecurity 表示文件的訪問控制和審核安全 System.Security.AccessControl.FileSecurity C參數(shù)不正確;A沒有設(shè)置;D設(shè)置錯誤 17、 Question 17 You work as the application developer at Hi-Tec
62、h . You want to modify the current security settings of a file named Data.xml, as follows: 你在Hi-Tech 做應(yīng)用程序開發(fā)人員。你要修改當(dāng)前名為Data.xml文件的安全設(shè)置。如下: 1. You must preserve all existing inherited access rules. 你必須保存所有現(xiàn)有的繼承的訪問規(guī)則。 2. You must prevent the access rules from inheriting future modifications.
63、 你必須防止日后修改繼承的訪問規(guī)則。 Choose the code segment which will accomplish the task. 選擇能夠?qū)崿F(xiàn)任務(wù)的代碼 A、 FileSecurity security=new FileSecurity(“Data.xml〞,AccessControlSections.All); security.SetAccessRuleProtection(true,true); File.SetAccessControl(“Data.xml〞,security); B、 FileSecurity security=new FileSec
64、urity(); security.SetAccessRuleProtection(true,true); File.SetAccessControl(“Data.xml〞,security); C、 FileSecurity security=File.GetAccessControl(“Data.xml〞); security.SetAccessRuleProtection(true,true); D、 FileSecurity security=File.GetAccessControl(“Data.xml〞); security.SetAuditRuleProtection
65、(true,true); File.SetAccessControl(“Data.xml〞,security); 點評:FileSecurity AccessControlSections〔枚舉〕 指定要保存或加載安全性說明符的那些局部。 18、 Question 18 You work as an application developer at Cer-Tech . You are currently creating an application that requires role-based security. You are planning to utilize(
66、利用/采用) a database to store the user accounts and group membership data. You need to ensure that users are able to log on and off. You alse need to ensure that the application you have created tracks the user accounts of thess users, and restrict or allow access to code based on their group membership. You need to achieve this objective with as little developer effort as possible. What should you do to implement role-based security? 你在Cer-Tech 做應(yīng)用程序開發(fā)人員。當(dāng)前你正在創(chuàng)立一個基于角色安全的應(yīng)用程序。方案采用數(shù)據(jù)庫存儲用戶賬戶和組成員
- 溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 專題黨課講稿:以高質(zhì)量黨建保障國有企業(yè)高質(zhì)量發(fā)展
- 廉政黨課講稿材料:堅決打好反腐敗斗爭攻堅戰(zhàn)持久戰(zhàn)總體戰(zhàn)涵養(yǎng)風(fēng)清氣正的政治生態(tài)
- 在新錄用選調(diào)生公務(wù)員座談會上和基層單位調(diào)研座談會上的發(fā)言材料
- 總工會關(guān)于2025年維護勞動領(lǐng)域政治安全的工作匯報材料
- 基層黨建工作交流研討會上的講話發(fā)言材料
- 糧食和物資儲備學(xué)習(xí)教育工作部署會上的講話發(fā)言材料
- 市工業(yè)園區(qū)、市直機關(guān)單位、市紀委監(jiān)委2025年工作計劃
- 檢察院政治部關(guān)于2025年工作計劃
- 辦公室主任2025年現(xiàn)實表現(xiàn)材料
- 2025年~村農(nóng)村保潔員規(guī)范管理工作方案
- 在深入貫徹中央8項規(guī)定精神學(xué)習(xí)教育工作部署會議上的講話發(fā)言材料4篇
- 開展深入貫徹規(guī)定精神學(xué)習(xí)教育動員部署會上的講話發(fā)言材料3篇
- 在司法黨組中心學(xué)習(xí)組學(xué)習(xí)會上的發(fā)言材料
- 國企黨委關(guān)于推動基層黨建與生產(chǎn)經(jīng)營深度融合工作情況的報告材料
- 副書記在2025年工作務(wù)虛會上的發(fā)言材料2篇