مشاركة عبر


UnknownPropertyException Class

The UnknownPropertyException class represents the exception that is raised when an SMO operation encounters an unknown property.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.SqlServer.Management.Common.SqlServerManagementException
      Microsoft.SqlServer.Management.Smo.SmoException
        Microsoft.SqlServer.Management.Smo.UnknownPropertyException

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

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class UnknownPropertyException _
    Inherits SmoException
'Usage
Dim instance As UnknownPropertyException
[SerializableAttribute]
public sealed class UnknownPropertyException : SmoException
[SerializableAttribute]
public ref class UnknownPropertyException sealed : public SmoException
[<SealedAttribute>]
[<SerializableAttribute>]
type UnknownPropertyException =  
    class 
        inherit SmoException 
    end
public final class UnknownPropertyException extends SmoException

The UnknownPropertyException type exposes the following members.

Constructors

  Name Description
Public method UnknownPropertyException() Initializes a new instance of the UnknownPropertyException class.
Public method UnknownPropertyException(String) Initializes a new instance of the UnknownPropertyException class for the specified property.
Public method UnknownPropertyException(String, Exception) Initializes a new instance of the UnknownPropertyException class with the specified message and inner exception.

Top

Properties

  Name Description
Public property CurrentVersion Gets the version of the instance of SQL Server.
Public property Data (Inherited from Exception.)
Public property HelpLink Gets the Help link for further information from Microsoft about the SMO exception. (Inherited from SmoException.)
Public property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message Gets the message that describes the current exception. (Overrides Exception.Message.)
Public property PropertyName Gets the name of the property that is unknown.
Public property SmoExceptionType Gets the type of SMO exception. (Overrides SmoException.SmoExceptionType.)
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property SupportedVersions Gets the supported versions for the exception.
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Sets the SerializationInfo with information about the exception. (Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetType (Inherited from Exception.)
Protected method SetHelpContext Sets the Help context value for the referenced exception. (Inherited from SmoException.)
Public method ToString (Inherited from Exception.)

Top

Remarks

Thread Safety

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.

Examples

Handling SMO Exceptions

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Management.Smo Namespace