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
Método público PropertyTypeMismatchException() () () () Initializes a new instance of the PropertyTypeMismatchException class.
Método público PropertyTypeMismatchException(String) Initializes a new instance of the PropertyTypeMismatchException class with the specified message.
Método público PropertyTypeMismatchException(String, Exception) Initializes a new instance of the PropertyTypeMismatchException class with the specified message and specified inner exception.
Método público 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
Propriedade pública Data (Herdado de Exception.)
Propriedade pública ExpectedType Gets the expected data type for the property.
Propriedade pública HelpLink Gets the Help link for further information from Microsoft about the SMO exception. (Herdado de SmoException.)
Propriedade protegida HResult (Herdado de Exception.)
Propriedade pública InnerException (Herdado de Exception.)
Propriedade pública Message Gets the message that describes the exception. (Substitui Exception. . :: . .Message.)
Propriedade pública PropertyName Gets the name of the property that received a value with the incorrect data type.
Propriedade pública ReceivedType Gets the data type that was received incorrectly by the property.
Propriedade pública SmoExceptionType Gets the type of SMO exception. (Substitui SmoException. . :: . .SmoExceptionType.)
Propriedade pública Source (Herdado de Exception.)
Propriedade pública StackTrace (Herdado de Exception.)
Propriedade pública TargetSite (Herdado de Exception.)

Início

Métodos

  Nome Descrição
Método público Equals (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método público GetBaseException (Herdado de Exception.)
Método público GetHashCode (Herdado de Object.)
Método público GetObjectData Returns object data in order to facilitate remoting. (Substitui Exception. . :: . .GetObjectData(SerializationInfo, StreamingContext).)
Método público GetType (Herdado de Exception.)
Método protegido MemberwiseClone (Herdado de Object.)
Método protegido SetHelpContext Sets the Help context value for the referenced exception. (Herdado de SmoException.)
Método público 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.

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

Referência