PropertyTypeMismatchException-Klasse
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.
Vererbungshierarchie
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 (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public NotInheritable Class PropertyTypeMismatchException _
Inherits SmoException
'Usage
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
Der PropertyTypeMismatchException-Typ macht folgende Elemente verfügbar.
Konstruktoren
Name | Beschreibung | |
---|---|---|
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. |
Zum Anfang
Eigenschaften
Name | Beschreibung | |
---|---|---|
Data | (Geerbt von Exception.) | |
ExpectedType | Gets the expected data type for the property. | |
HelpLink | Gets the Help link for further information from Microsoft about the SMO exception. (Geerbt von SmoException.) | |
HResult | (Geerbt von Exception.) | |
InnerException | (Geerbt von Exception.) | |
Message | Gets the message that describes the exception. (Überschreibt 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. (Überschreibt SmoException. . :: . .SmoExceptionType.) | |
Source | (Geerbt von Exception.) | |
StackTrace | (Geerbt von Exception.) | |
TargetSite | (Geerbt von Exception.) |
Zum Anfang
Methoden
Name | Beschreibung | |
---|---|---|
Equals | (Geerbt von Object.) | |
Finalize | (Geerbt von Object.) | |
GetBaseException | (Geerbt von Exception.) | |
GetHashCode | (Geerbt von Object.) | |
GetObjectData | Returns object data in order to facilitate remoting. (Überschreibt Exception. . :: . .GetObjectData(SerializationInfo, StreamingContext).) | |
GetType | (Geerbt von Exception.) | |
MemberwiseClone | (Geerbt von Object.) | |
SetHelpContext | Sets the Help context value for the referenced exception. (Geerbt von SmoException.) | |
ToString | (Geerbt von Exception.) |
Zum Anfang
Hinweise
Thread Safety
Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Für Instanzelemente kann nicht sichergestellt werden, dass sie für Threads sicher sind.
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.