当前位置:MCTS(70-528)题库

问题:

[单选] 你正在创建一个用于成员管理的 Web 站点。它的功能依据用户所属角色不同而不同。其中,Web 站点使用 ASP.NET 成员管理相关控件进行帐户的创建。现在,你需要确定一个用户是否是指定角色的一个成员,你应该如何做?()

A . 使用Membership.ValidateUser
B . 使用 User.IsInRole.
C . 使用Roles.RoleExists.
D . 使用Membership.GetUser.

您要写下面的名为 CustomException的自定义异常类public class CustomException : ApplicationException { public static int COR_E_ARGUMENT = unchecked((int)0x80070057); public CustomException(string msg) : base(msg) { HResult = COR_E_ARGUMENT; }}您需要编写一段代码,这段代码要使用ustomException 类,并且要迅速返回控制权给COM 调用方法。 您应该使用哪个代码?() return Marshal.GetExceptionForHR(CustomException.COR_E_ARGUMENT);。 return CustomException.COR_E_ARGUMENT;。 Marshal.ThrowExceptionForHR(CustomException.COR_E_ARGUMENT);。 throw new CustomException(“Argument is out of bounds”)。 下列关于证人权利与义务的表述,错误的是()。 证人必须如实提供证据、证言。 证人有权核对询问笔录。 证人应当随传随到。 证人可以使用本民族语言文字接受询问。 You work in a company which uses SQL Server 2008. You are the administrator of the company database. Now you are in charge of a SQL Server 2008 instance which uses mixed authentication mode. The instance runs on a computer which has Windows Server 2003 installed. You must make sure that the SQL Server 2008 authenticated logins follow the same password complexity rules that are enforced by Windows Server 2003. Besides this, you must make sure that the password complexity rules continue to be enforced.  So what action should you perform to achieve this goal?()  You should create an SQL Server Agent job. If a rule violation is detected, the job runs periodically to raise an alert 。 You should modify all logins by using the ALTER LOGIN ... HASHED statement. 。 You should modify all logins by using the ALTER LOGIN ... CHECK_POLICY = ON statement to. 。 You should modify all logins by using the ALTER LOGIN ... CHECK_EXPIRATION = ON statement. 。 You should create a policy by using Policy-Based Management. The policy prevents any violation of these rule。 科技论文作者思维清晰主要体现在()。 作者思路和思想上。 语言文字上。 科研三步曲上。 论文目录构架中。 You are developing an application that performs file backups in the background. The background application will host a Windows Communication Foundation (WCF) service and must be active as soon as the machine is running. The background application will not have a user interface. A front-end application will consume the WCF service and will provide the user interface.You need to choose a host environment for the WCF service. Which hosting environment should you choose? () Microsoft Internet Information Services (IIS) 6.0。 Windows Process Activation Services (WAS)。 A Windows Forms application。 A Windows Service。 你正在创建一个用于成员管理的 Web 站点。它的功能依据用户所属角色不同而不同。其中,Web 站点使用 ASP.NET 成员管理相关控件进行帐户的创建。现在,你需要确定一个用户是否是指定角色的一个成员,你应该如何做?()
参考答案:

  参考解析

本题暂无解析

相关题目:

在线 客服