MethodNotImplementedException Class

All methods defined by the relevant ASCOM standard interface must exist in each driver. However, those methods do not all have to be implemented. The minimum requirement for each defined method is to throw the ASCOM.MethodNotImplementedException. Note that no default constructor is supplied. Throwing this requires the the method name.

Definition

Namespace: ASCOM
Assembly: ASCOM.Exceptions (in ASCOM.Exceptions.dll) Version: 6.0.0.0 (7.0.9999.9999)
C#
[SerializableAttribute]
[ComVisibleAttribute(true)]
[GuidAttribute("BBED286E-5814-4467-9471-A499DED13452")]
public class MethodNotImplementedException : NotImplementedException
Inheritance
Object    Exception    DriverException    NotImplementedException    MethodNotImplementedException

Remarks

If you need to throw this error as a COM exception use the error number: 0x80040400.

Constructors

MethodNotImplementedException For Code Analysis, please don't use
MethodNotImplementedException(String) Create a new exception object and identify the specified driver method as the source.
MethodNotImplementedException(String, Exception) Create a new exception object and identify the specified driver method as the source, and include an inner exception object containing a caught exception.
MethodNotImplementedException(String, String) Create a new exception with the supplied message

Properties

Method The method that is not implemented
Number The COM error code for this exception (hex 80040400 - 800404FF)
(Inherited from DriverException)
PropertyOrMethod The property/accessor or method that is not implemented
(Inherited from NotImplementedException)

Extension Methods

ErrorCode Extension method to get the Alpaca Error Code for an Exception. Returns UnspecifiedError if it cannot find a better code
(Defined by ExceptionHelpers)

Version Information

.NET Standard

Supported in: 2.0

See Also