C# Класс NewTOAPIA.DirectShow.DsError

Показать файл Открыть проект

Открытые методы

Метод Описание
GetErrorText ( int hr ) : string

Returns a string describing a DS error. Works for both error codes (values < 0) and Status codes (values >= 0)

ThrowExceptionForHR ( int hr ) : void

If hr has a "failed" status code (E_*), throw an exception. Note that status messages (S_*) are not considered failure codes. If DirectShow error text is available, it is used to build the exception, otherwise a generic com error is thrown.

Приватные методы

Метод Описание
AMGetErrorText ( int hr, StringBuilder buf, int max ) : int
DsError ( ) : System

Описание методов

GetErrorText() публичный статический Метод

Returns a string describing a DS error. Works for both error codes (values < 0) and Status codes (values >= 0)
public static GetErrorText ( int hr ) : string
hr int HRESULT for which to get description
Результат string

ThrowExceptionForHR() публичный статический Метод

If hr has a "failed" status code (E_*), throw an exception. Note that status messages (S_*) are not considered failure codes. If DirectShow error text is available, it is used to build the exception, otherwise a generic com error is thrown.
public static ThrowExceptionForHR ( int hr ) : void
hr int The HRESULT to check
Результат void