Classe PropertyTypeMismatchException
The PropertyTypeMismatchException class represents the exception raised when an attempt is made to set the property with a value that has the incorrect data type.
Hierarquia de herança
System.Object
System.Exception
Microsoft.SqlServer.Management.Common.SqlServerManagementException
Microsoft.SqlServer.Management.Smo.SmoException
Microsoft.SqlServer.Management.Smo.PropertyTypeMismatchException
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
<SerializableAttribute> _
Public NotInheritable Class PropertyTypeMismatchException _
Inherits SmoException
'Uso
Dim instance As PropertyTypeMismatchException
[SerializableAttribute]
public sealed class PropertyTypeMismatchException : SmoException
[SerializableAttribute]
public ref class PropertyTypeMismatchException sealed : public SmoException
[<SealedAttribute>]
[<SerializableAttribute>]
type PropertyTypeMismatchException =
class
inherit SmoException
end
public final class PropertyTypeMismatchException extends SmoException
O tipo PropertyTypeMismatchException expõe os membros a seguir.
Construtores
Nome | Descrição | |
---|---|---|
PropertyTypeMismatchException() | Initializes a new instance of the PropertyTypeMismatchException class. | |
PropertyTypeMismatchException(String) | Initializes a new instance of the PropertyTypeMismatchException class with the specified message. | |
PropertyTypeMismatchException(String, Exception) | Initializes a new instance of the PropertyTypeMismatchException class with the specified message and specified inner exception. | |
PropertyTypeMismatchException(String, String, String) | Initializes a new instance of the PropertyTypeMismatchException class for the specified property, and specified received type and expected type. |
Início
Propriedades
Nome | Descrição | |
---|---|---|
Data | (Herdado de Exception.) | |
ExpectedType | Gets the expected data type for the property. | |
HelpLink | Gets the Help link for further information from Microsoft about the SMO exception. (Herdado de SmoException.) | |
HResult | (Herdado de Exception.) | |
InnerException | (Herdado de Exception.) | |
Message | Gets the message that describes the exception. (Substitui Exception.Message.) | |
PropertyName | Gets the name of the property that received a value with the incorrect data type. | |
ReceivedType | Gets the data type that was received incorrectly by the property. | |
SmoExceptionType | Gets the type of SMO exception. (Substitui SmoException.SmoExceptionType.) | |
Source | (Herdado de Exception.) | |
StackTrace | (Herdado de Exception.) | |
TargetSite | (Herdado de Exception.) |
Início
Métodos
Nome | Descrição | |
---|---|---|
Equals | (Herdado de Object.) | |
GetBaseException | (Herdado de Exception.) | |
GetHashCode | (Herdado de Object.) | |
GetObjectData | Returns object data in order to facilitate remoting. (Substitui Exception.GetObjectData(SerializationInfo, StreamingContext).) | |
GetType | (Herdado de Exception.) | |
SetHelpContext | Sets the Help context value for the referenced exception. (Herdado de SmoException.) | |
ToString | (Herdado de Exception.) |
Início
Comentários
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
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.