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.
public sealed class PropertyTypeMismatchException : SmoException
Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
Any public static
in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.