class CultureNotFoundException

in global :: System . Globalization

The exception that is thrown when a method attempts to construct a culture that is not available.


public CultureNotFoundException( string message )

Initializes a new instance of the class with the specified error message.

  • message The error message to display with this exception.

public CultureNotFoundException( string message, Exception innerException )

Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception.

  • message The error message to display with this exception.
  • innerException The exception that is the cause of the current exception. If the parameter is not a null reference, the current exception is raised in a block that handles the inner exception.

public CultureNotFoundException( string message, int invalidCultureId, Exception innerException )

Initializes a new instance of the class with a specified error message, the invalid Culture ID, and a reference to the inner exception that is the cause of this exception.

  • message The error message to display with this exception.
  • invalidCultureId The Culture ID that cannot be found.
  • innerException The exception that is the cause of the current exception. If the parameter is not a null reference, the current exception is raised in a block that handles the inner exception.

public CultureNotFoundException( string paramName, int invalidCultureId, string message )

Initializes a new instance of the class with a specified error message, the invalid Culture ID, and the name of the parameter that is the cause this exception.

  • paramName The name of the parameter that is the cause the current exception.
  • invalidCultureId The Culture ID that cannot be found.
  • message The error message to display with this exception.

public CultureNotFoundException( string paramName, string message )

Initializes a new instance of the class with a specified error message and the name of the parameter that is the cause this exception.

  • paramName The name of the parameter that is the cause of the current exception.
  • message The error message to display with this exception.

public CultureNotFoundException( string message, string invalidCultureName, Exception innerException )

Initializes a new instance of the class with a specified error message, the invalid Culture Name, and a reference to the inner exception that is the cause of this exception.

  • message The error message to display with this exception.
  • invalidCultureName The Culture Name that cannot be found.
  • innerException The exception that is the cause of the current exception. If the parameter is not a null reference, the current exception is raised in a block that handles the inner exception.

public CultureNotFoundException( string paramName, string invalidCultureName, string message )

Initializes a new instance of the class with a specified error message, the invalid Culture Name, and the name of the parameter that is the cause this exception.

  • paramName The name of the parameter that is the cause the current exception.
  • invalidCultureName The Culture Name that cannot be found.
  • message The error message to display with this exception.

public void GetObjectData( SerializationInfo info, StreamingContext context )

Sets the object with the parameter name and additional exception information.

  • info The object that holds the serialized object data.
  • context The contextual information about the source or destination.

public Nullable<int> InvalidCultureId { get; }

Gets the culture identifier that cannot be found.

  • Returns The invalid culture identifier.

public string InvalidCultureName { get; }

Gets the culture name that cannot be found.

  • Returns The invalid culture name.

public string Message { get; }

Gets the error message that explains the reason for the exception.

  • Returns A text string describing the details of the exception.

public Type GetType( )

😔 No documentation found.

public string ParamName { get; }

😔 No documentation found.

public IDictionary Data { get; }

😔 No documentation found.

public CultureNotFoundException( )

😔 No documentation found.

public Exception InnerException { get; }

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string StackTrace { get; }

😔 No documentation found.

public Exception GetBaseException( )

😔 No documentation found.

public int HResult { get; set; }

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public string Source { get; set; }

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

😔 No documentation found.