Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
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.
Hiérarchie d'héritage
System.Object
System.Exception
Microsoft.SqlServer.Management.Common.SqlServerManagementException
Microsoft.SqlServer.Management.Smo.SmoException
Microsoft.SqlServer.Management.Smo.PropertyTypeMismatchException
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
<SerializableAttribute> _
Public NotInheritable Class PropertyTypeMismatchException _
Inherits SmoException
'Utilisation
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
Le type PropertyTypeMismatchException expose les membres suivants.
Constructeurs
| Nom | Description | |
|---|---|---|
![]() |
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. |
Haut de la page
Propriétés
| Nom | Description | |
|---|---|---|
![]() |
Data | (hérité de Exception.) |
![]() |
ExpectedType | Gets the expected data type for the property. |
![]() |
HelpLink | Gets the Help link for further information from Microsoft about the SMO exception. (hérité de SmoException.) |
![]() |
HResult | (hérité de Exception.) |
![]() |
InnerException | (hérité de Exception.) |
![]() |
Message | Gets the message that describes the exception. (remplace 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. (remplace SmoException.SmoExceptionType.) |
![]() |
Source | (hérité de Exception.) |
![]() |
StackTrace | (hérité de Exception.) |
![]() |
TargetSite | (hérité de Exception.) |
Haut de la page
Méthodes
| Nom | Description | |
|---|---|---|
![]() |
Equals | (hérité de Object.) |
![]() |
GetBaseException | (hérité de Exception.) |
![]() |
GetHashCode | (hérité de Object.) |
![]() |
GetObjectData | Returns object data in order to facilitate remoting. (remplace Exception.GetObjectData(SerializationInfo, StreamingContext).) |
![]() |
GetType | (hérité de Exception.) |
![]() |
SetHelpContext | Sets the Help context value for the referenced exception. (hérité de SmoException.) |
![]() |
ToString | (hérité de Exception.) |
Haut de la page
Notes
Thread Safety
Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.
Exemples
Sécurité des threads
Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.
.gif)
.gif)
.gif)