搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

您要写下面的名为 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 调用方法。 您应该使用哪个代码?()

A、return Marshal.GetExceptionForHR(CustomException.COR_E_ARGUMENT);

B、return CustomException.COR_E_ARGUMENT;

C、Marshal.ThrowExceptionForHR(CustomException.COR_E_ARGUMENT);

D、throw new CustomException(“Argument is out of bounds”);

更多“您要写下面的名为 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 调用方法。 您应该使用哪个代码?()”相关的问题
第1题

A、保价吗?  B、挂号吗?  C、航空吗?  D、怎么寄?  

点击查看答案
第6题

A、在“搜索的文件或文件夹名为:”文本框中输入“沧州地税”  B、在“搜索的文件或文件夹名为:”文本框中输入“沧州*.*”  C、在“搜索的文件或文件夹名为:”文本框中输入“?沧州?.*”  D、在“搜索的文件或文件夹名为:”文本框中输入“*沧州*.*”  

点击查看答案
第7题

A、OnSerializing  B、OnDeserializing  C、OnSerialized  D、OnDeserialized  

点击查看答案
第8题

A、扩展名为.fla的Flash源文件  B、扩展名为.flv的Flash视频文件  C、扩展名为.swf的Flash播放文件  D、扩展名为.exe的Flash自播放文件  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服