DeviceInUseException.cs
上传用户:wuming6209
上传日期:2013-06-06
资源大小:161k
文件大小:1k
源码类别:
视频捕捉/采集
开发平台:
Visual C++
- // ------------------------------------------------------------------
- // DirectX.Capture
- //
- // History:
- // 2003-Jan-24 BL - created
- //
- // Copyright (c) 2003 Brian Low
- // ------------------------------------------------------------------
- using System;
- namespace DirectX.Capture
- {
- /// <summary>
- /// Exception thrown when the device cannot be rendered or started.
- /// </summary>
- public class DeviceInUseException : SystemException
- {
- // Initializes a new instance with the specified HRESULT
- public DeviceInUseException(string deviceName, int hResult) : base( deviceName + " is in use or cannot be rendered. (" + hResult + ")" )
- {
- }
- }
- }
English
