Partager via


LocalizedException Members

Include Protected Members
Include Inherited 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 Data (Inherited from Exception.)
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 HelpLink (Inherited from Exception.)
Protected property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
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 Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property StringFormatParameters
Public property StringId
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public methodStatic member GenerateErrorCode The GenerateErrorCode method uses information in the exception argument e to generate an error code.
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData The GetObjectData method is called when this LocalizedException object is serialized. (Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetType (Inherited from Exception.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Exception.)

Top