FunctionWrongArgumentsNumberException Constructor (String, Int32, Int32)

 

Initializes a new instance of the T:Microsoft.SqlServer.Management.Dmf. ExceptionAlreadyRegisteredException class that has the specified function, received and expected types.

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

Syntax

public FunctionWrongArgumentsNumberException(
    string functionName,
    int receivedCount,
    int expectedCount
)
public:
FunctionWrongArgumentsNumberException(
    String^ functionName,
    int receivedCount,
    int expectedCount
)
new : 
        functionName:string *
        receivedCount:int *
        expectedCount:int -> FunctionWrongArgumentsNumberException
Public Sub New (
    functionName As String,
    receivedCount As Integer,
    expectedCount As Integer
)

Parameters

  • functionName
    Type: System.String

    A String value that specifies the name of the function that is associated with the exception.

  • receivedCount
    Type: System.Int32

    An Int32 value that specifies the number of arguments that are received by the function.

  • expectedCount
    Type: System.Int32

    A Int32 value that specifies the number of arguments that are expected by the function.

Remarks

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

Examples

Handling SMO Exceptions

See Also

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

Return to top