Udostępnij za pośrednictwem


Konstruktor PropertyTypeMismatchException (String, String, String)

Inicjuje nowe wystąpienie PropertyTypeMismatchException klasy dla określonej właściwość i określony typ odebrane i oczekiwanego typu.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
Public Sub New ( _
    propertyName As String, _
    receivedType As String, _
    expectedType As String _
)
'Użycie
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
)

Parametry

  • receivedType
    Typ: System.String
    A String wartość określająca typ danych został odebrany niepoprawnie.
  • expectedType
    Typ: System.String
    A String wartość, która określa typ danych, która jest prawidłowa dla właściwość odwołania.