LocalizedException members

The LocalizedException class uses localized strings for exception messages.

The LocalizedException type exposes the following members.

Constructors

  Name Description
Public method LocalizedException(LocalizedString) The LocalizedException constructor creates a new LocalizedException with a localized string for the error message.
Protected method LocalizedException(SerializationInfo, StreamingContext) The LocalizedException constructor creates a new serializable LocalizedException object.
Public method LocalizedException(LocalizedString, Exception) The LocalizedException constructor uses a localized error message to create a new LocalizedException object from an inner exception.

Top

Properties

  Name Description
Public property ErrorCode The ErrorCode property gets or sets the error code for this LocalizedException object.
Public property FormatProvider The FormatProvider property gets or sets the FormatProvider that this LocalizedException object uses to format its error message.
Public property LocalizedString The LocalizedString property gets the localized error message for this LocalizedException object.
Public property Message The Message property gets the non-localized error message for this LocalizedException object. (Overrides Exception.Message.)
Public property StringFormatParameters
Public property StringId

Top

Methods

  Name Description
Public methodStatic member GenerateErrorCode The GenerateErrorCode method uses information in the exception argument e to generate an error code.
Public method GetObjectData The GetObjectData method is called when this LocalizedException object is serialized. (Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).)

Top

See also

Reference

LocalizedException class

Microsoft.Exchange.Data.Common namespace