首页> 外文期刊>MSDN Magazine >Throwing Custom Exception Types from a Managed COM+ Server Application
【24h】

Throwing Custom Exception Types from a Managed COM+ Server Application

机译:从托管的COM + Server应用程序引发自定义异常类型

获取原文
获取原文并翻译 | 示例
           

摘要

Exception handling semantics in .NET are based on type, so you can create custom exceptions that have their own properties and methods. In .NET, exceptions are first-class citizens, and since they're the built-in error handling mechanism, all .NET-compliant languages must support exceptions. In addition, COM+ services are available to .NET code as Enterprise Services, so you can leverage exceptions in your Enterprise Services design. In this article the author describes custom exceptions, throwing exceptions across COM interop boundaries, and working with Enterprise Services.
机译:.NET中的异常处理语义是基于类型的,因此您可以创建具有自己的属性和方法的自定义异常。在.NET中,异常是一等公民,并且由于它们是内置的错误处理机制,因此所有与.NET兼容的语言都必​​须支持异常。此外,COM +服务可作为企业服务用于.NET代码,因此您可以在企业服务设计中利用异常。在本文中,作者描述了自定义异常,跨COM互操作边界引发异常以及如何使用Enterprise Services。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号