Partilhar via


Construtor FunctionWrongArgumentsNumberException (String, Int32, Int32)

Initializes a new instance of the ExceptionAlreadyRegisteredException class that has the specified function, received and expected types.

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

Sintaxe

'Declaração
Public Sub New ( _
    functionName As String, _
    receivedCount As Integer, _
    expectedCount As Integer _
)
'Uso
Dim functionName As String 
Dim receivedCount As Integer 
Dim expectedCount As Integer 

Dim instance As New FunctionWrongArgumentsNumberException(functionName, _
    receivedCount, expectedCount)
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 function FunctionWrongArgumentsNumberException(
    functionName : String, 
    receivedCount : int, 
    expectedCount : int
)

Parâmetros

  • functionName
    Tipo: System.String
    A String value that specifies the name of the function that is associated with the exception.
  • receivedCount
    Tipo: System.Int32
    An Int32 value that specifies the number of arguments that are received by the function.
  • expectedCount
    Tipo: System.Int32
    A Int32 value that specifies the number of arguments that are expected by the function.

Comentários

Só há suporte para esse namespace, classe ou membro na versão 2.0 do Microsoft .NET Framework.

Exemplos

Manipulando exceções SMO

Consulte também

Referência

FunctionWrongArgumentsNumberException Classe

Sobrecarregado FunctionWrongArgumentsNumberException

Namespace Microsoft.SqlServer.Management.Dmf