Share via


ObjectValidationException Constructor (String, String, Exception)

 

Initializes a new instance of the ObjectValidationException class that has the specified object name, object type and inner exception.

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

Syntax

public ObjectValidationException(
    string objectType,
    string objectName,
    Exception innerException
)
public:
ObjectValidationException(
    String^ objectType,
    String^ objectName,
    Exception^ innerException
)
new : 
        objectType:string *
        objectName:string *
        innerException:Exception -> ObjectValidationException
Public Sub New (
    objectType As String,
    objectName As String,
    innerException As Exception
)

Parameters

  • objectType
    Type: System.String

    A String value that specifies the type of object that encountered an error during validation.

  • objectName
    Type: System.String

    A String value that specifies the name of the object that encountered an error during validation.

  • innerException
    Type: System.Exception

    An Exception object that contains the inner exception. This is used when one exception causes another exception to be raised.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Examples

Handling SMO Exceptions

See Also

ObjectValidationException Overload
ObjectValidationException Class
Microsoft.SqlServer.Management.Dmf Namespace

Return to top