Compartir a través de


Clase 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.

Jerarquía de herencia

System.Object
  System.Exception
    Microsoft.SqlServer.Management.Common.SqlServerManagementException
      Microsoft.SqlServer.Management.Smo.SmoException
        Microsoft.SqlServer.Management.Smo.PropertyTypeMismatchException

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<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

El tipo PropertyTypeMismatchException expone los siguientes miembros.

Constructores

  Nombre Descripción
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.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública Data (Se hereda de Exception.)
Propiedad pública ExpectedType Gets the expected data type for the property.
Propiedad pública HelpLink Gets the Help link for further information from Microsoft about the SMO exception. (Se hereda de SmoException.)
Propiedad pública HResult (Se hereda de Exception.)
Propiedad pública InnerException (Se hereda de Exception.)
Propiedad pública Message Gets the message that describes the exception. (Invalida Exception.Message.)
Propiedad pública PropertyName Gets the name of the property that received a value with the incorrect data type.
Propiedad pública ReceivedType Gets the data type that was received incorrectly by the property.
Propiedad pública SmoExceptionType Gets the type of SMO exception. (Invalida SmoException.SmoExceptionType.)
Propiedad pública Source (Se hereda de Exception.)
Propiedad pública StackTrace (Se hereda de Exception.)
Propiedad pública TargetSite (Se hereda de Exception.)

Arriba

Métodos

  Nombre Descripción
Método público Equals (Se hereda de Object.)
Método público GetBaseException (Se hereda de Exception.)
Método público GetHashCode (Se hereda de Object.)
Método público GetObjectData Returns object data in order to facilitate remoting. (Invalida Exception.GetObjectData(SerializationInfo, StreamingContext).)
Método público GetType (Se hereda de Exception.)
Método protegido SetHelpContext Sets the Help context value for the referenced exception. (Se hereda de SmoException.)
Método público ToString (Se hereda de Exception.)

Arriba

Comentarios

Thread Safety

Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Ejemplos

Controlar excepciones SMO

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.Management.Smo