Show / Hide Table of Contents

Class MAPIException

Exception thrown when a MAPI error occurs.

Inheritance
System.Object
System.Exception
MAPIException
Implements
System.Runtime.Serialization.ISerializable
System.Exception.GetBaseException()
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Sartorius.SAF.MAPI
Assembly: Sartorius.SAF.dll
Syntax
[Serializable]
public sealed class MAPIException : Exception, ISerializable

Constructors

View Source

MAPIException()

Creates a new instance of the MAPIException class.

Declaration
public MAPIException()
View Source

MAPIException(String)

Creates a new instance of the MAPIException class.

Declaration
public MAPIException(string message)
Parameters
Type Name Description
System.String message

The error message that explains the reason for the exception.

View Source

MAPIException(String, Exception)

Create a new instance of MAPIException.

Declaration
public MAPIException(string message, Exception innerException)
Parameters
Type Name Description
System.String message

The error message that explains the reason for the exception.

System.Exception innerException

The internal exception.

Properties

View Source

ErrorCode

Gets the error code.

Declaration
public int ErrorCode { get; }
Property Value
Type Description
System.Int32

The error code.

Methods

View Source

GetObjectData(SerializationInfo, StreamingContext)

Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The System.Runtime.Serialization.SerializationInfo to populate with data.

System.Runtime.Serialization.StreamingContext context

The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.

Overrides
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Implements

System.Runtime.Serialization.ISerializable

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
ExceptionExtensions.GetRootException(Exception)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX