Class InvalidNameException
InvalidNameException is thrown for invalid names such as directory traversal paths and names with invalid characters
Implements
Inherited Members
Namespace: ICSharpCode.SharpZipLib.Core
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
[Serializable]
public class InvalidNameException : SharpZipBaseException, ISerializable
Constructors
| Improve this Doc View SourceInvalidNameException()
Initializes a new instance of the InvalidNameException class with a default error message.
Declaration
public InvalidNameException()
InvalidNameException(SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidNameException class with serialized data.
Declaration
protected InvalidNameException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
InvalidNameException(String)
Initializes a new instance of the InvalidNameException class with a specified error message.
Declaration
public InvalidNameException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A message describing the exception. |
InvalidNameException(String, Exception)
Initializes a new instance of the InvalidNameException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public InvalidNameException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A message describing the exception. |
System.Exception | innerException | The inner exception |