Compartilhar via


Construtor PropertyTypeMismatchException (String, String, String)

Initializes a new instance of the PropertyTypeMismatchException class for the specified property, and specified received type and expected type.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Sub New ( _
    propertyName As String, _
    receivedType As String, _
    expectedType As String _
)
'Uso
Dim propertyName As String 
Dim receivedType As String 
Dim expectedType As String 

Dim instance As New PropertyTypeMismatchException(propertyName, _
    receivedType, expectedType)
public PropertyTypeMismatchException(
    string propertyName,
    string receivedType,
    string expectedType
)
public:
PropertyTypeMismatchException(
    String^ propertyName, 
    String^ receivedType, 
    String^ expectedType
)
new : 
        propertyName:string * 
        receivedType:string * 
        expectedType:string -> PropertyTypeMismatchException
public function PropertyTypeMismatchException(
    propertyName : String, 
    receivedType : String, 
    expectedType : String
)

Parâmetros

  • receivedType
    Tipo: System.String
    A String value that specifies the data type that was received incorrectly.
  • expectedType
    Tipo: System.String
    A String value that specifies the data type that is correct for the referenced property.

Exemplos

Manipulando exceções SMO

Consulte também

Referência

PropertyTypeMismatchException Classe

Sobrecarregado PropertyTypeMismatchException

Namespace Microsoft.SqlServer.Management.Smo