参考一段vb的代码:
tmpCon = New SqlConnection(strCon)
        Try
            tmpCon.Open()
            tmpParam = New SqlParameter("@New_C", SqlDbType.Int)
            tmpParam.Direction = ParameterDirection.Output            tmpCmd = New SqlCommand
            With tmpCmd
                .Connection = tmpCon
                .CommandText = "GET_CONFIRMATION"
                .CommandType = CommandType.StoredProcedure
                .Parameters.Add(tmpParam)                .ExecuteNonQuery()            End With
            result = CType(tmpParam.Value, Int64)
            tmpCon.Close()
        Catch ex As Exception
            MsgBox(ex.Message)
            tmpCon.Close()
            result = -1
        Finally
            tmpCmd = Nothing
            tmpParam = Nothing
            tmpCon = Nothing
            tmpCommonDB = Nothing        End Try