Classe InvalidInputException
The InvalidInputException class is raised when validation of input data fails in the DAC package.
Hierarquia de herança
System. . :: . .Object
System. . :: . .Exception
Microsoft.SqlServer.Management.Common. . :: . .SqlServerManagementException
Microsoft.SqlServer.Management.Dac. . :: . .DacException
Microsoft.SqlServer.Management.Dac..::..InvalidInputException
Namespace: Microsoft.SqlServer.Management.Dac
Assembly: Microsoft.SqlServer.Management.Dac (em Microsoft.SqlServer.Management.Dac.dll)
Sintaxe
'Declaração
<SerializableAttribute> _
Public NotInheritable Class InvalidInputException _
Inherits DacException
'Uso
Dim instance As InvalidInputException
[SerializableAttribute]
public sealed class InvalidInputException : DacException
[SerializableAttribute]
public ref class InvalidInputException sealed : public DacException
[<SealedAttribute>]
[<SerializableAttribute>]
type InvalidInputException =
class
inherit DacException
end
public final class InvalidInputException extends DacException
O tipo InvalidInputException expõe os membros a seguir.
Construtores
| Nome | Descrição | |
|---|---|---|
![]() |
InvalidInputException(String) | Initializes a new instance of the InvalidInputException class that has the specified message text. |
![]() |
InvalidInputException(String, Exception) | Initializes a new instance of the InvalidInputException class that has the specified message text and inner exception. |
Início
Propriedades
| Nome | Descrição | |
|---|---|---|
![]() |
DacExceptionType | Gets the type of the exception. (Herdado de DacException.) |
![]() |
Data | (Herdado de Exception.) |
![]() |
HelpLink | Gets a string with the URL help link that further explains the exception. (Herdado de DacException.) |
![]() |
HResult | (Herdado de Exception.) |
![]() |
InnerException | (Herdado de Exception.) |
![]() |
Message | (Herdado de Exception.) |
![]() |
Source | (Herdado de Exception.) |
![]() |
StackTrace | (Herdado de Exception.) |
![]() |
TargetSite | (Herdado de Exception.) |
Início
Métodos
| Nome | Descrição | |
|---|---|---|
![]() |
Equals | (Herdado de Object.) |
![]() |
Finalize | (Herdado de Object.) |
![]() |
GetBaseException | (Herdado de Exception.) |
![]() |
GetHashCode | (Herdado de Object.) |
![]() |
GetObjectData | (Herdado de Exception.) |
![]() |
GetType | (Herdado de Exception.) |
![]() |
Init | Initializes provider properties. (Herdado de DacException.) |
![]() |
MemberwiseClone | (Herdado de Object.) |
![]() |
SetHelpContext | Sets the help context for the help link. (Herdado de DacException.) |
![]() |
ToString | (Herdado de Exception.) |
Início
Comentários
Using the InvalidInputException class, you can:
Handle errors generated by invalid input in the DAC namespace.
Determine the cause of the error.
Thread Safety
Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.
Exemplos
VC#
try
{
//Enter Dac code here.
}
//Catch the invalid input exception.
catch (InvalidInputException iiex)
{
System.Console.WriteLine("This is a invalid input exception");
//Display the exception message.
System.Console.WriteLine(iiex.Message);
}
//Catch other exceptions.
catch (Exception ex)
{
System.Console.WriteLine("This is another exception.");
}
Segurança de thread
Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.
Consulte também
.gif)
.gif)
.gif)
.gif)