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.
messageThe 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.
messageThe error message to display with this exception.innerExceptionThe 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.
messageThe error message to display with this exception.invalidCultureIdThe Culture ID that cannot be found.innerExceptionThe 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.
paramNameThe name of the parameter that is the cause the current exception.invalidCultureIdThe Culture ID that cannot be found.messageThe 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.
paramNameThe name of the parameter that is the cause of the current exception.messageThe 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.
messageThe error message to display with this exception.invalidCultureNameThe Culture Name that cannot be found.innerExceptionThe 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.
paramNameThe name of the parameter that is the cause the current exception.invalidCultureNameThe Culture Name that cannot be found.messageThe 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.
infoThe object that holds the serialized object data.contextThe 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.
public string HelpLink { get; set; }
😔 No documentation found.